/* ===========================================
   AUTH CSS - Modern Split Layout
   =========================================== */

:root {
    --auth-primary: #3b82f6;
    --auth-primary-hover: #2563eb;
    --auth-bg: #f8fafc;
    --auth-surface: #ffffff;
    --auth-text: #0f172a;
    --auth-text-secondary: #64748b;
    --auth-text-muted: #94a3b8;
    --auth-border: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--auth-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
}

/* Container */
.auth-container {
    display: flex;
    width: 880px;
    max-width: 96vw;
    min-height: 520px;
    background: var(--auth-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 30px rgba(0,0,0,0.06);
    border: 1px solid var(--auth-border);
}

/* ---- LEFT PANEL ---- */
.auth-left {
    flex: 1;
    background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-left::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-left-content {
    position: relative;
    z-index: 1;
}

.auth-left-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 48px;
}

.auth-left-brand-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-left-brand-icon img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.4));
}

.auth-left-brand span {
    font-size: 15px;
    font-weight: 600;
    color: #e2e8f0;
    letter-spacing: -0.01em;
}

.auth-left h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.auth-left h2 .highlight {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 4px;
    display: inline-block;
    line-height: 1.2;
}

.auth-left > p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.auth-left-desc {
    font-size: 15px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Features */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 0;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-feature-icon i {
    font-size: 14px;
    color: #60a5fa;
}

.auth-feature-text {
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.4;
}

.auth-left-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    color: #475569;
}

/* ---- RIGHT PANEL ---- */
.auth-right {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-right-header {
    margin-bottom: 28px;
}

.auth-right-header h1 {
    font-size: 20px;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.auth-right-header p {
    font-size: 14px;
    color: var(--auth-text-secondary);
}

/* Info */
.auth-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 14px;
    background: #eff6ff;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 1px solid #dbeafe;
}

.auth-info i {
    color: var(--auth-primary);
    font-size: 13px;
    margin-top: 2px;
    flex-shrink: 0;
}

.auth-info span {
    font-size: 13px;
    color: #1e40af;
    line-height: 1.45;
}

/* Alerts */
.auth-right .alert {
    border: none;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-right .alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-right .alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-form label {
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text);
}

.auth-form .form-control {
    padding: 10px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--auth-text);
    background: var(--auth-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
    background: #fff;
}

.auth-form .form-control::placeholder {
    color: var(--auth-text-muted);
}

/* Button */
.btn-login {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--auth-primary);
    color: #fff;
    margin-top: 4px;
    width: 100%;
}

.btn-login:hover {
    background: var(--auth-primary-hover);
    box-shadow: 0 1px 3px rgba(37,99,235,0.25);
    color: #fff;
}

.btn-login:active {
    transform: scale(0.99);
}

/* Footer */
.auth-right-footer {
    text-align: center;
    margin-top: 24px;
    color: var(--auth-text-muted);
    font-size: 12px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
    }
    .auth-left {
        padding: 28px 24px 24px;
    }
    .auth-left-brand {
        margin-bottom: 20px;
    }
    .auth-left h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }
    .auth-left h2 br {
        display: none;
    }
    .auth-left-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
    .auth-features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    .auth-feature {
        gap: 8px;
    }
    .auth-feature-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    .auth-feature-icon i {
        font-size: 12px;
    }
    .auth-feature-text {
        font-size: 12px;
    }
    .auth-left-footer {
        display: none;
    }
    .auth-right {
        padding: 28px 24px;
    }
    .auth-form .form-control {
        font-size: 16px;
        padding: 12px 14px;
        min-height: 48px;
    }
    .btn-login {
        padding: 14px 16px;
        min-height: 48px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 0;
    }
    .auth-container {
        border-radius: 0;
        max-width: 100vw;
        margin: 0;
        min-height: 100vh;
        min-height: 100dvh;
        box-shadow: none;
        border: none;
    }
    .auth-left {
        padding: 24px 20px 20px;
    }
    .auth-left::before {
        width: 180px;
        height: 180px;
        top: -50px;
        right: -50px;
    }
    .auth-left::after {
        width: 140px;
        height: 140px;
        bottom: -40px;
        left: -30px;
    }
    .auth-left-brand {
        margin-bottom: 16px;
    }
    .auth-left-brand img {
        height: 40px !important;
    }
    .auth-left h2 {
        font-size: 20px;
    }
    .auth-left-desc {
        font-size: 12px;
        margin-bottom: 16px;
    }
    .auth-features {
        gap: 8px;
    }
    .auth-feature-text {
        font-size: 11px;
    }
    .auth-right {
        padding: 24px 20px;
        flex: 1;
    }
    .auth-right-header {
        margin-bottom: 20px;
    }
    .auth-right-header h1 {
        font-size: 18px;
    }
    .auth-info {
        padding: 10px 12px;
        margin-bottom: 20px;
    }
    .auth-info span {
        font-size: 12px;
    }
    .auth-right-footer {
        margin-top: 20px;
    }
}
