/* =========================================
   Nubcor Pass AUTH
   ========================================= */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(
            circle at top right,
            rgba(23, 105, 255, 0.16),
            transparent 34%
        ),
        var(--navy);

    display: flex;
    justify-content: center;
    padding: 28px 18px;
}

.auth-shell {
    width: 100%;
    max-width: 430px;
    display: flex;
    flex-direction: column;
}


/* BRAND */

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--on-dark);
    margin: 12px 4px 28px;
}

.auth-logo {
    width: 44px;
    height: 44px;
    border-radius: 14px;

    display: grid;
    place-items: center;

    background: var(--blue);
    color: var(--on-dark);

    font-size: 22px;
    font-weight: 800;

    box-shadow:
        0 10px 28px rgba(23, 105, 255, 0.28);
}

.auth-brand strong {
    display: block;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.auth-brand span {
    display: block;
    margin-top: 2px;

    color: var(--on-dark-muted);
    font-size: 12px;
}


/* CARD */

.auth-card {
    background: var(--surface);
    border-radius: 26px;
    padding: 28px 22px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.22);
}

.auth-intro {
    margin-bottom: 26px;
}

.auth-eyebrow {
    display: inline-block;

    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;

    margin-bottom: 8px;
}

.auth-intro h1 {
    margin: 0;
    color: var(--navy);

    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.auth-intro p {
    margin: 10px 0 0;

    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}


/* FORM */

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-label-row label {
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    min-height: 52px;

    border: 1px solid var(--border-strong);
    border-radius: 14px;

    background: var(--input-bg);
    color: var(--text);

    padding: 0 15px;

    font: inherit;
    font-size: 15px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group input::placeholder {
    color: var(--placeholder);
}

.form-group input:focus {
    background: var(--surface);
    border-color: var(--blue);

    box-shadow:
        0 0 0 4px rgba(23, 105, 255, 0.10);
}


/* PASSWORD */

.password-toggle {
    border: 0;
    background: transparent;

    padding: 2px 0;

    color: var(--blue);

    font: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}


/* BUTTONS */

.auth-submit {
    min-height: 54px;
    margin-top: 4px;

    border-radius: 14px;

    font-size: 15px;
    font-weight: 800;
}

.auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-secondary {
    min-height: 52px;

    border-radius: 14px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 800;
}


/* FORM HELP */

.form-help {
    display: flex;
    justify-content: flex-end;

    margin-top: 8px;
}

.form-help a {
    color: var(--blue);

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;
}

.form-help a:hover {
    text-decoration: underline;
}

.form-help a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}


/* MESSAGE */

.message {
    min-height: 20px;

    margin: 14px 2px 0;

    font-size: 13px;
    line-height: 1.5;

    text-align: center;
}

.message.error {
    color: var(--red-text);
}

.message.success {
    color: var(--green-text);
}


/* DIVIDER */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 24px 0 16px;

    color: var(--placeholder);
    font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}


/* FOOTER */

.auth-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;

    margin-top: 22px;

    color: var(--muted);

    font-size: 11px;
    text-align: center;
}


/* SMALL PHONES */

@media (max-width: 360px) {

    .auth-page {
        padding: 20px 14px;
    }

    .auth-card {
        padding: 24px 18px;
        border-radius: 22px;
    }

    .auth-intro h1 {
        font-size: 27px;
    }

}

.password-hint {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}
