/**
 * Auth CSS - Modern Split-Screen Design
 * Postsabuy Creator - TikTok Content Creation Platform
 */

/* ========================================
   Layout Structure
   ======================================== */
body.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: var(--font-primary);
    background: #ffffff;
    overflow-x: hidden;
}

.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ========================================
   Left Side: Brand Section (Desktop Only)
   ======================================== */
.login-brand-section {
    flex: 1.2;
    /* Takes up about 55-60% of screen */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px;
    color: white;
    overflow: hidden;
}

/* Abstract Background Art */
.brand-bg-art {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.6;
}

.art-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}

.art-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(45deg, #FF0050, #fe2c55);
    top: -20%;
    right: -20%;
    animation: float 25s infinite alternate;
}

.art-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(45deg, #00F2EA, #4facfe);
    bottom: -10%;
    left: -10%;
    animation: float 20s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Brand Content */
.brand-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 24px;
    font-weight: 700;
}

.brand-logo i {
    font-size: 32px;
    background: linear-gradient(45deg, #FF0050, #00F2EA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-heading {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(to right, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-desc {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
}

.brand-features {
    display: grid;
    gap: 20px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.feature-row i {
    color: #00F2EA;
    background: rgba(0, 242, 234, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* ========================================
   Right Side: Form Section
   ======================================== */
.login-form-section {
    flex: 0.8;
    /* Takes up about 40-45% of screen */
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
}

.mobile-logo {
    display: none;
    /* Hidden on desktop */
    text-align: center;
    margin-bottom: 30px;
}

.mobile-logo i {
    font-size: 48px;
    background: linear-gradient(45deg, #FF0050, #00F2EA);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1rem;
}

/* Buttons */
.btn-login {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* สำหรับปุ่มที่เป็นลิงก์ (a tag) */
.btn-login[href] {
    text-decoration: none;
    color: inherit;
    margin-bottom: 16px;
}

.btn-login[href]:hover {
    text-decoration: none;
    color: inherit;
}

.btn-tiktok {
    background: #000000;
    color: #ffffff;
}

.btn-tiktok:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-google {
    background: linear-gradient(135deg, #4285F4 0%, #34A853 50%, #FBBC05 75%, #EA4335 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-google:hover::before {
    left: 100%;
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.btn-google i {
    font-size: 1.2rem;
}

.btn-line {
    background: #06C755;
    color: #ffffff;
}

.btn-line:hover {
    background: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 199, 85, 0.2);
}

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #999;
    font-size: 0.9rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #eee;
}

.divider span {
    padding: 0 15px;
}

.footer-links {
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: #000;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 991px) {
    .login-brand-section {
        display: none;
        /* Hide brand section on tablet/mobile */
    }

    .login-form-section {
        flex: 1;
        background: #f8f9fa;
        /* Light grey bg for mobile */
    }

    .form-wrapper {
        background: #ffffff;
        padding: 30px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .mobile-logo {
        display: block;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .mobile-features {
        display: block;
        margin-top: 30px;
        background: #f8f9fa;
        padding: 20px;
        border-radius: 12px;
        text-align: center;
    }
}

@media (min-width: 992px) {
    .mobile-features {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 20px;
        background: #ffffff;
        /* White bg for small mobile */
    }

    .form-wrapper {
        box-shadow: none;
        padding: 0;
    }
}