﻿/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Page background — soft radial lavender glow, exactly like screenshot ── */
html, body {
    height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: #F0F2FF;
    display: flex;
    align-items: center;
    justify-content: center;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse 65% 55% at 50% 45%, rgba(160,150,255,.22) 0%, rgba(200,195,255,.10) 45%, transparent 80%), radial-gradient(ellipse 80% 60% at 70% 30%, rgba(180,175,255,.13) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 25% 70%, rgba(140,130,255,.10) 0%, transparent 65%);
        pointer-events: none;
        z-index: 0;
    }

/* ── Outer wrapper ── */
.auth-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 20px;
}

/* ── Main card ── */
.auth-card {
    background: #FFFFFF;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(100,90,200,.08), 0 16px 48px rgba(100,90,200,.12);
}

/* ── Top notice banner (like "You need to be signed in…") ── */
.auth-notice {
    background: #E8E8FF;
    padding: 11px 20px;
    text-align: center;
    font-size: 13px;
    color: #5B5EA6;
    font-weight: 400;
    border-bottom: 1px solid rgba(130,120,255,.12);
    display: none; /* shown via JS when needed */
}

    .auth-notice.show {
        display: block;
    }

/* ── Card body ── */
.auth-body {
    padding: 36px 40px 32px;
    width: 420px;
}

/* ── Logo ── */
.auth-logo {
    text-align: center;
    margin-bottom: 18px;
}

    .auth-logo img {
        max-height: 54px;
        max-width: 180px;
        object-fit: contain;
    }

/* ── Title ── */
.auth-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 28px;
    line-height: 1.3;
}

/* ── Label ── */
.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

/* ── Input ── */
.auth-input {
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 13.5px;
    color: #111827;
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-radius: 9px;
    padding: 10px 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none;
}

    .auth-input:focus {
        border-color: #6C63FF;
        box-shadow: 0 0 0 3px rgba(108,99,255,.12);
    }

    .auth-input::placeholder {
        color: #9CA3AF;
    }

/* ── Field group ── */
.auth-field {
    margin-bottom: 16px;
    position: relative;
}

/* ── Caps-lock warning ── */
.capslock-warning {
    display: none;
    font-size: 11.5px;
    color: #DC2626;
    margin-top: 4px;
    font-weight: 500;
}

/* ── Checkbox row ── */
.auth-checks {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: -4px;
}

.auth-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #6B7280;
    cursor: pointer;
}

    .auth-check-item input[type=checkbox] {
        accent-color: #6C63FF;
        width: 14px;
        height: 14px;
        cursor: pointer;
    }

/* ── Primary button (Login / Register) ── */
.btn-auth-primary {
    display: block;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    background: linear-gradient(135deg, #6C63FF 0%, #7C74FF 100%);
    border: none;
    border-radius: 9px;
    padding: 11px 20px;
    cursor: pointer;
    transition: all .2s;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}

    .btn-auth-primary:hover, .btn-auth-primary:focus {
        background: linear-gradient(135deg, #5B52EE 0%, #6B63EE 100%);
        color: #fff;
        box-shadow: 0 4px 16px rgba(108,99,255,.35);
        text-decoration: none;
    }

/* ── Secondary button (Sign Up / Go to Login) ── */
.btn-auth-secondary {
    display: block;
    width: 100%;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    background: #FFFFFF;
    border: 1.5px solid #D1D5DB;
    border-radius: 9px;
    padding: 10px 20px;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
    text-decoration: none;
    margin-bottom: 10px;
}

    .btn-auth-secondary:hover, .btn-auth-secondary:focus {
        border-color: #6C63FF;
        color: #6C63FF;
        background: #F5F4FF;
        text-decoration: none;
    }

/* ── Divider ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0;
    font-size: 12.5px;
    color: #9CA3AF;
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E5E7EB;
    }

/* ── Footer links ── */
.auth-links {
    margin-top: 14px;
    text-align: center;
}

    .auth-links a {
        font-size: 12.5px;
        color: #6C63FF;
        text-decoration: none;
        display: block;
        margin-bottom: 6px;
        transition: color .15s;
    }

        .auth-links a:hover {
            color: #5B52EE;
            text-decoration: underline;
        }

/* ── Bottom page note ── */
.auth-footnote {
    text-align: center;
    margin-top: 18px;
    font-size: 12px;
    color: #9CA3AF;
}

    .auth-footnote a {
        color: #6C63FF;
        text-decoration: underline;
    }

/* ── swal override ── */
.swal2-popup {
    font-size: 13px !important;
    font-family: 'DM Sans',sans-serif !important;
    border-radius: 14px !important;
}

.swal2-html-container {
    font-size: 13px !important;
}
