/* =========================================================
   AUTH LABEL ROW
   ========================================================= */

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-small-link {
    font-size: 9px;
    color: #22d3ee;
    text-decoration: none;
}

.auth-small-link:hover {
    color: #67e8f9;
}


/* =========================================================
   AUTH DIVIDER
   ========================================================= */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 18px 0;

    color: #59647c;

    font-size: 9px;
}

.auth-divider span {
    height: 1px;
    flex: 1;

    background: rgba(255,255,255,.08);
}

.auth-divider b {
    font-size: 9px;
    font-weight: 500;

    color: #69738c;

    white-space: nowrap;
}


/* =========================================================
   CREATE ACCOUNT TEXT
   ========================================================= */

.auth-create-text {
    text-align: center;

    margin-bottom: 9px;

    font-size: 9px;

    color: #69738c;
}

.auth-create-btn {
    width: 100%;
}

.auth-submit {
    width: 100%;
    margin-top: 3px;
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.auth-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;

    margin-top: 18px;

    font-size: 9px;
    line-height: 1.8;

    color: #69738c;
}

.auth-footer-links a {
    color: #8c96ad;

    text-decoration: none;

    transition: .2s ease;
}

.auth-footer-links a:hover {
    color: #c4b5fd;
}


/* =========================================================
   TWO COLUMN FORM
   ========================================================= */

.auth-two-col {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    width: 100%;
}

.auth-full {
    width: 100%;
}


/* =========================================================
   TERMS CHECKBOX
   ========================================================= */

.auth-check-row {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin: 14px 0;

    color: #8994ab;

    font-size: 9px;

    line-height: 1.6;

    cursor: pointer;
}

.auth-check-row input {
    width: auto;

    margin-top: 2px;

    accent-color: #8b5cf6;

    cursor: pointer;
}

.auth-check-row a {
    color: #67e8f9;

    text-decoration: none;
}

.auth-check-row a:hover {
    color: #a5f3fc;
}


/* =========================================================
   AUTH POPUP / MODAL
   NOTE:
   This modal is used ONLY on login.php and register.php.
   ========================================================= */

.auth-modal {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 18px;

    visibility: hidden;

    opacity: 0;

    transition:
        opacity .22s ease,
        visibility .22s ease;
}

.auth-modal.is-open {
    visibility: visible;

    opacity: 1;
}


/* =========================================================
   MODAL BACKDROP
   ========================================================= */

.auth-modal-backdrop {
    position: absolute;

    inset: 0;

    background: rgba(2,4,12,.78);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);
}


/* =========================================================
   MODAL BOX
   ========================================================= */

.auth-modal-dialog {
    position: relative;

    z-index: 1;

    width: min(650px, 100%);

    max-height: min(82vh, 700px);

    overflow-y: auto;

    padding: 26px;

    border-radius: 18px;

    border: 1px solid rgba(139,92,246,.28);

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(139,92,246,.16),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            rgba(18,23,42,.99),
            rgba(8,11,22,.99)
        );

    box-shadow:
        0 30px 100px rgba(0,0,0,.58),
        0 0 60px rgba(139,92,246,.08);

    transform: translateY(18px) scale(.97);

    opacity: 0;

    transition:
        transform .25s ease,
        opacity .25s ease;
}

.auth-modal.is-open .auth-modal-dialog {
    transform: translateY(0) scale(1);

    opacity: 1;
}


/* =========================================================
   MODAL CLOSE BUTTON
   ========================================================= */

.auth-modal-close {
    position: absolute;

    top: 11px;
    right: 11px;

    width: 34px;
    height: 34px;

    border-radius: 10px;

    border: 1px solid rgba(255,255,255,.08);

    background: rgba(255,255,255,.035);

    color: #cbd5e1;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    transition: .2s ease;
}

.auth-modal-close:hover {
    color: #fff;

    background: rgba(251,113,133,.12);

    border-color: rgba(251,113,133,.20);

    transform: rotate(90deg);
}


/* =========================================================
   MODAL ICON
   ========================================================= */

.auth-modal-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    margin-bottom: 13px;

    border-radius: 14px;

    color: #67e8f9;

    border: 1px solid rgba(34,211,238,.18);

    background:
        linear-gradient(
            135deg,
            rgba(34,211,238,.10),
            rgba(139,92,246,.14)
        );

    font-size: 20px;

    box-shadow:
        0 0 25px rgba(34,211,238,.06);
}


/* =========================================================
   MODAL TITLE
   ========================================================= */

.auth-modal-dialog h2 {
    margin: 0 0 12px;

    color: #f8fafc;

    font-size: 19px;

    font-weight: 800;
}


/* =========================================================
   MODAL CONTENT
   ========================================================= */

.auth-modal-body {
    color: #98a1ba;

    font-size: 11px;

    line-height: 1.8;
}

.auth-modal-body h3 {
    margin: 17px 0 6px;

    color: #e5e7eb;

    font-size: 12px;
}

.auth-modal-body p {
    margin: 0 0 10px;
}

.auth-modal-body ul {
    margin: 7px 0 12px;

    padding-left: 19px;
}

.auth-modal-body li {
    margin-bottom: 5px;
}

.auth-modal-body a {
    color: #67e8f9;

    text-decoration: none;
}

.auth-modal-body a:hover {
    color: #a5f3fc;
}

.auth-modal-body strong {
    color: #e5e7eb;
}


/* =========================================================
   MODAL NOTE / CONTENT CARD
   ========================================================= */

.auth-modal-note {
    margin-top: 13px;

    padding: 12px 13px;

    border-radius: 11px;

    background: rgba(255,255,255,.025);

    border: 1px solid rgba(255,255,255,.07);
}

.auth-modal-note strong {
    color: #e5e7eb;
}


/* =========================================================
   MODAL SCROLLBAR
   ========================================================= */

.auth-modal-dialog::-webkit-scrollbar {
    width: 7px;
}

.auth-modal-dialog::-webkit-scrollbar-track {
    background: transparent;
}

.auth-modal-dialog::-webkit-scrollbar-thumb {
    background: rgba(139,92,246,.35);

    border-radius: 20px;
}

.auth-modal-dialog::-webkit-scrollbar-thumb:hover {
    background: rgba(139,92,246,.55);
}


/* =========================================================
   MOBILE MODAL
   ========================================================= */

@media (max-width: 600px) {

    .auth-modal {
        padding: 10px;
    }

    .auth-modal-dialog {
        width: 100%;

        padding: 21px;

        max-height: 88vh;

        border-radius: 15px;
    }

    .auth-modal-body {
        font-size: 10px;
    }

    .auth-modal-dialog h2 {
        font-size: 17px;
    }
}


/* =========================================================
   REGISTER PAGE - PROPORTIONAL SPACING / PADDING
   (single source of truth — replaces earlier conflicting
   register-card overrides)
   ========================================================= */

.register-card {
    width: min(560px, 92vw) !important;
    max-width: 560px !important;

    padding: 40px 44px !important;

    margin: 24px auto;
}

.register-card .login-brand {
    margin-bottom: 30px;
}

.register-card .login-brand .brand-mark {
    width: 52px;
    height: 52px;
    font-size: 21px;

    margin: 0 auto 4px;
}

.register-card .login-brand h1 {
    font-size: 20px;
    margin: 13px 0 5px;
}

.register-card .login-brand p {
    font-size: 10px;
    margin: 0;
}

.register-card form {
    width: 100%;
}

.register-card .field {
    width: 100%;
    margin-bottom: 16px;
}

.register-card .field label {
    display: block;

    font-size: 10px;
    font-weight: 600;

    margin-bottom: 6px;

    color: #8290aa;
}

.register-card .field input {
    width: 100%;

    min-height: 44px;

    padding: 11px 14px;

    font-size: 11px;

    border-radius: 9px;

    border: 1px solid rgba(255,255,255,.09);

    background: rgba(7,11,22,.72);
}

.register-card .auth-two-col {
    width: 100%;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.register-card .auth-check-row {
    width: 100%;

    margin: 18px 0 20px;

    padding: 0;

    font-size: 9px;

    line-height: 1.7;
}

.register-card .auth-submit {
    width: 100%;

    min-height: 46px;

    margin-top: 2px;

    font-size: 11px;

    border-radius: 9px;
}

.register-card .auth-divider {
    width: 100%;

    margin: 24px 0 20px;
}

.register-card .auth-create-btn {
    width: 100%;

    min-height: 44px;

    border-radius: 9px;
}

.register-card .auth-footer-links {
    width: 100%;

    margin-top: 22px;

    padding-top: 2px;

    font-size: 9px;

    gap: 7px;
}


/* Desktop — wide, generously padded card to match the sign-in page's proportions */

@media (min-width: 900px) {

    .register-card {
        width: 560px !important;
        max-width: 560px !important;

        padding: 44px 48px !important;
    }
}


/* Tablet */

@media (min-width: 601px) and (max-width: 899px) {

    .register-card {
        width: min(540px, 92vw) !important;

        padding: 36px !important;
    }
}


/* Mobile */

@media (max-width: 600px) {

    .register-card {
        width: 92vw !important;
        max-width: 92vw !important;

        padding: 28px 24px !important;

        margin: 16px auto;
    }

    .register-card .auth-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .register-card .field input {
        min-height: 43px;
    }

    .register-card .login-brand {
        margin-bottom: 22px;
    }
}


/* Small screen safety */

@media (max-width: 420px) {

    .register-card {
        padding: 22px 20px !important;
    }

    .register-card .login-brand h1 {
        font-size: 17px;
    }

    .register-card .field input {
        min-height: 42px;
        font-size: 11px;
    }

    .auth-footer-links {
        gap: 5px;

        font-size: 8px;
    }
}