/* ═══════════════════════════════════════════════════
   NOMADWEALTH — Auth Pages (Login / Register)
   ═══════════════════════════════════════════════════ */

html { font-size: 16px; }

.auth-page {
    background: var(--navy-deep);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
}

.auth__container {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
}

/* Brand */
.auth__brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.auth__brand-img {
    height: 44px;
    width: auto;
    border-radius: var(--radius-sm);
}

.auth__brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.auth__brand-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.auth__brand-sub {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Card */
.auth__card {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.auth__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--navy-deep);
    text-align: center;
    margin-bottom: var(--space-xs);
}

.auth__subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: var(--space-xl);
}

/* Error */
.auth__error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

/* Form */
.auth__form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.auth__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.auth__field {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.auth__field label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--navy-deep);
}

.auth__field input {
    padding: var(--space-md) var(--space-lg);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.auth__field input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.auth__field input::placeholder {
    color: var(--gray-400);
}

/* Field row (remember me + forgot) */
.auth__field-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth__forgot {
    font-size: 0.8125rem;
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
}

.auth__forgot:hover {
    text-decoration: underline;
}

/* Checkbox */
.auth__checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.5;
    cursor: pointer;
}

.auth__checkbox input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--gold);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth__checkbox a {
    color: var(--gold);
    text-decoration: underline;
}

/* Submit */
.auth__submit {
    margin-top: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
}

/* Switch */
.auth__switch {
    text-align: center;
    margin-top: var(--space-xl);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.auth__switch a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.auth__switch a:hover {
    text-decoration: underline;
}

/* Footer */
.auth__footer {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
    .auth-page {
        padding: var(--space-lg);
    }

    .auth__card {
        padding: var(--space-2xl) var(--space-xl);
    }

    .auth__row {
        grid-template-columns: 1fr;
    }

    .auth__title {
        font-size: 1.5rem;
    }
}
