/* ─── Auth page — full reset for this context ─────── */
.auth-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

/* ─── Wrapper: two columns ────────────────────────── */
.auth-wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ─── Left brand panel ────────────────────────────── */
.auth-brand {
    width: 45%;
    background: linear-gradient(145deg, #4f46e5 0%, #7c3aed 60%, #9333ea 100%);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,.06) 0%, transparent 50%);
}

/* decorative circles */
.auth-brand::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    bottom: -200px;
    right: -150px;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 48px 48px 40px;
    width: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.3px;
}

.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 0;
}

.brand-content h1 {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.5px;
    margin-bottom: 16px;
}

.brand-content p {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    line-height: 1.6;
    max-width: 340px;
    margin-bottom: 40px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: rgba(255,255,255,.9);
    font-size: 14px;
    line-height: 1.5;
}

.feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.brand-footer {
    color: rgba(255,255,255,.4);
    font-size: 13px;
}

/* ─── Right form panel ────────────────────────────── */
.auth-form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #fff;
}

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

/* ─── Login box ───────────────────────────────────── */
.login-box {
    width: 100%;
}

/* ─── Header ──────────────────────────────────────── */
.login-header {
    margin-bottom: 32px;
}

.login-avatar {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.admin-avatar {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
}

.user-avatar {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -.3px;
}

.login-header p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* ─── Alert ───────────────────────────────────────── */
.auth-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ─── Form ────────────────────────────────────────── */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    letter-spacing: .01em;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    pointer-events: none;
    flex-shrink: 0;
}

.input-wrap input {
    width: 100%;
    padding: 11px 44px 11px 44px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrap input::placeholder {
    color: #94a3b8;
}

.input-wrap input:focus {
    border-color: #4f46e5;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
}

.toggle-pwd {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 6px;
    transition: color .2s;
}

.toggle-pwd:hover {
    color: #4f46e5;
}

/* ─── Submit button ───────────────────────────────── */
.auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-top: 4px;
    transition: opacity .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .35);
}

.auth-btn:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, .4);
}

.auth-btn:active {
    transform: translateY(0);
}

/* ─── Divider + link ──────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: #94a3b8;
    font-size: 13px;
}

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

.auth-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 11px 20px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    background: #f8fafc;
    transition: border-color .2s, background .2s, color .2s;
    font-family: inherit;
}

.auth-link-btn:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background: #f5f3ff;
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .auth-wrapper {
        flex-direction: column;
    }

    .auth-brand {
        width: 100%;
        min-height: auto;
        padding: 0;
    }

    .auth-brand-inner {
        padding: 28px 24px;
    }

    .brand-content {
        padding: 24px 0;
    }

    .brand-content h1 {
        font-size: 24px;
    }

    .brand-features {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 20px;
    }
}
