/* Shared Auth Forms Styling (Sign In, Forgot Password, Reset Code, Reset Password) */

.auth-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(1.5rem, 4vw, 3.5rem) var(--section-gap);
}

.auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(80% 55% at 50% 82%, rgba(198, 231, 224, 0.55) 0%, rgba(210, 228, 236, 0.24) 44%, rgba(253, 253, 253, 0) 72%),
    linear-gradient(180deg, var(--color-surface) 0%, rgba(212, 221, 227, 0.35) 100%);
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(var(--space-6), 5vw, var(--space-10));
}

.auth-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    width: 100%;
    max-width: 27rem;
}

.auth-head {
    display: grid;
    gap: var(--space-4);
}

.auth-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--fw-regular);
    line-height: var(--lh-snug);
    color: var(--color-muted);
}

.auth-intro {
    font-size: var(--fs-sm);
    color: var(--color-text);
    max-width: 42ch;
}

.auth-form {
    display: grid;
    gap: var(--space-4);
}

.auth-form .field__input {
    width: 100%;
}

.auth-form__submit {
    margin-top: var(--space-3);
}

.auth-alt {
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-text);
}

.auth-alt a {
    font-weight: var(--fw-semibold);
    text-decoration: underline;
}

.auth-legal {
    margin-top: auto;
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--color-text-soft);
}

.auth-legal a {
    text-decoration: underline;
}

/* Password field wrapper & Eye toggle button */
.field__password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.field__password-wrapper .field__input {
    padding-right: 2.75rem;
}

.field__password-toggle {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 0.35rem;
    margin: 0;
    cursor: pointer;
    color: var(--color-text-soft, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.field__password-toggle:hover,
.field__password-toggle:focus-visible {
    color: var(--color-muted, #0f172a);
    outline: none;
}

/* Password guidance box */
.password-guidance {
    margin-bottom: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.8125rem;
}

.password-guidance__title {
    font-weight: 600;
    color: #334155;
    margin: 0 0 0.375rem 0;
}

.password-guidance__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.password-criteria {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    transition: color 0.2s ease;
}

.password-criteria--met {
    color: #15803d;
    font-weight: 500;
}

.password-criteria--pending {
    color: #64748b;
}

.password-criteria__bullet {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    flex-shrink: 0;
}

.password-criteria--met .password-criteria__bullet {
    background-color: #15803d;
}

@media (max-width: 820px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: clamp(var(--space-6), 7vw, var(--space-8));
    }

    .auth-panel {
        max-width: 32rem;
        margin-inline: auto;
    }
}
