* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0d0f12;
    color: #0f172a;
    min-height: 100vh;
}

/* LAYOUT CONTAINER */
.auth-layout {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #0d0f12;
    background: 
        radial-gradient(circle at 95% 10%, #363022 0%, transparent 65%),
        radial-gradient(circle at 10% 90%, rgba(16, 28, 87, 0.45) 0%, transparent 50%),
        #2F2A22;
}

.auth-card {
    width: 100%;
    max-width: 980px;
    min-height: 640px;
    background: #ffffff;
    border-radius: 28px;
    padding: 1.25rem;
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
}

/* ---------- VISUAL LEFT PANEL: HERO & ARTWORK (auth-right) ---------- */
.auth-right {
    width: 48%;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: #050709 url('../images/login-image.jpg') center/cover no-repeat;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 2.25rem;
}

.hero-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 15, 18, 0.92) 0%, rgba(13, 15, 18, 0.4) 50%, transparent 100%);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.hero-overlay h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.hero-overlay p {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.45;
    margin-bottom: 1.75rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.stat-pill {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.5rem 0.85rem;
    display: flex;
    flex-direction: column;
    min-width: 85px;
    text-align: center;
}

.stat-pill b {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-pill span {
    font-size: 0.72rem;
    color: #cbd5e1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ---------- VISUAL RIGHT PANEL: FORM CONTAINER (auth-left) ---------- */
.auth-left {
    width: 52%;
    padding: 2rem 2rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    position: relative;
}

.auth-inner {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

/* TYPOGRAPHY */
.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.auth-subtitle a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.auth-subtitle a:hover {
    text-decoration: underline;
}

/* MESSAGES & NOTIFICATIONS */
.auth-notification,
.auth-error,
.auth-info,
.auth-success {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
}

.auth-error,
.auth-notification.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.auth-info,
.auth-notification.info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #93c5fd;
}

.auth-success,
.auth-notification.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.auth-notification.warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* FORM FIELDS */
.form-group {
    margin-bottom: 1.1rem;
}

.auth-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}

/* INPUTS */
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input:not([type="checkbox"]):not([type="radio"]) {
    width: 100% !important;
    height: 46px !important;
    padding: 0 16px !important;
    border-radius: 10px !important;
    background: #f3f6fc !important;
    border: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
    font-size: 0.92rem !important;
    transition: border-color .15s, box-shadow .15s, background .15s;
    -webkit-text-fill-color: #0f172a;
    outline: none !important;
}

.auth-form input::placeholder {
    color: #94a3b8 !important;
}

.auth-form input:focus {
    border-color: #2563eb !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

/* Autofill styling fix */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #0f172a !important;
    -webkit-box-shadow: 0 0 0 1000px #f3f6fc inset !important;
    transition: background-color 9999s ease-in-out 0s;
    caret-color: #0f172a;
}

/* REMEMBER & FORGOT PASSWORD ROW */
.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0.25rem 0 1.25rem;
    font-size: 0.82rem;
}

.remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 400 !important;
    color: #475569;
    margin: 0 !important;
    cursor: pointer;
}

.remember input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #2563eb;
    cursor: pointer;
}

/* PRIMARY BUTTON */
.btn-primary {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: none;
    background: #162836;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s, transform .1s;
}

.btn-primary:hover {
    background: #0f1c26;
}

/* LINKS */
.auth-link {
    font-size: 0.82rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    text-decoration: underline;
}

/* DIVIDER */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.35rem 0;
    color: #94a3b8;
    font-size: 0.78rem;
}

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

.auth-divider span {
    padding: 0 0.75rem;
}

/* SOCIAL BUTTONS */
.social-buttons,
.social-form {
    width: 100%;
    display: block;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.btn-social {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-weight: 600;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s;
}

.btn-social:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

/* RESPONSIVE LAYOUT */
@media (max-width: 850px) {
    .auth-layout {
        padding: 1rem;
    }
    
    .auth-card {
        flex-direction: column;
        max-width: 440px;
        min-height: auto;
    }

    .auth-right {
        width: 100%;
        min-height: 220px;
        padding: 1.5rem;
    }

    .auth-left {
        width: 100%;
        padding: 1.5rem 1rem;
    }
}