﻿/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Page background ── */
html, body {
    min-height: 100%;
    font-family: 'DM Sans', sans-serif;
    background: #F0F2FF;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse 65% 55% at 50% 40%, rgba(160,150,255,.22) 0%, rgba(200,195,255,.10) 45%, transparent 80%), radial-gradient(ellipse 80% 60% at 70% 25%, rgba(180,175,255,.13) 0%, transparent 70%), radial-gradient(ellipse 60% 50% at 25% 75%, 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%;
    max-width: 440px;
}

/* ── 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 ── */
.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);
}

/* ── Card body ── */
.auth-body {
    padding: 36px 40px 32px;
}

/* ── 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: 6px;
    line-height: 1.3;
}

.auth-subtitle {
    text-align: center;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 26px;
}

/* ── Two-column grid for name fields ── */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ── Label ── */
.auth-label {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 5px;
}

/* ── 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: 14px;
}

/* ── Primary button ── */
.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-top: 6px;
    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 ── */
.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;
    }

/* ── Footer links ── */
.auth-links {
    margin-top: 14px;
    text-align: center;
}

    .auth-links a {
        font-size: 12.5px;
        color: #6C63FF;
        text-decoration: none;
        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;
    }

/* ── Success modal override ── */
.modal-content {
    border-radius: 16px !important;
    border: none !important;
    font-family: 'DM Sans', sans-serif !important;
    overflow: hidden;
}

.modal-body {
    padding: 36px 32px 24px !important;
}

.modal-footer {
    border: none !important;
    padding: 0 32px 24px !important;
}

.top-strip {
    height: 5px;
    background: linear-gradient(90deg, #6C63FF, #A89BFF);
    border-radius: 12px 12px 0 0;
    margin: -36px -32px 24px;
}

.bottom-strip {
    height: 1px;
    background: #F3F4F6;
    margin: 24px -32px 0;
}

.modal-body h2 {
    font-family: 'DM Sans',sans-serif;
    font-weight: 700;
    color: #111827;
}

.modal-body p {
    font-family: 'DM Sans',sans-serif;
    font-size: 13.5px;
    color: #6B7280;
}

.btn-warning {
    font-family: 'DM Sans',sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg,#6C63FF,#7C74FF) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    padding: 9px 24px !important;
    transition: all .2s !important;
}

    .btn-warning:hover {
        background: linear-gradient(135deg,#5B52EE,#6B63EE) !important;
    }

/* swal */
.swal2-popup {
    font-size: 13px !important;
    font-family: 'DM Sans',sans-serif !important;
    border-radius: 14px !important;
}

.swal2-html-container {
    font-size: 13px !important;
}
