.auth-wrap {
    min-height: calc(100dvh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background:
        radial-gradient(900px 380px at 20% -10%, #fbffe3 0%, transparent 60%),
        radial-gradient(900px 380px at 80% 110%, #fce7f3 0%, transparent 60%),
        var(--bg, #fafafa);
}

.auth-card {
    background: var(--paper, #fff);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 47.5vw;
    box-shadow: var(--shadow-lg, 0 14px 34px rgba(2, 6, 23, .10));
    margin-top: 6vh;
}

@media (max-width: 1080px) {
    .auth-card {
        max-width: 500px;
    }
}

/* Title */
.auth-title {
    font-family: "Figtree", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1.15;
    text-align: center;
    margin: 0 0 6px;
}

/* Subtitle */
.auth-sub {
    text-align: center;
    color: var(--muted);
    margin: 0 0 20px;
    font-size: .95rem;
    font-family: "Poppins", sans-serif;
}

/* form */
.auth-form fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.field {
    margin-bottom: 14px;
}

.auth-label {
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
    font-family: "Figtree", sans-serif;
}

.auth-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-family: "Poppins", sans-serif;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(2, 6, 23, .06));
}

.auth-input:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: #f0abfc;
}

.field-help {
    font-size: .86rem;
    color: var(--muted);
    margin-top: 6px;
    font-family: "Poppins", sans-serif;
}

/* password group with toggle */
.pw-group {
    position: relative;
}

.pw-toggle {
    position: absolute;
    right: 10px;
    top: 60px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    font-family: "Urbanist", sans-serif;
}

.pw-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* reCAPTCHA styling */
.g-recaptcha {
    margin: 20px 0;
    display: flex;
    justify-content: flex-start;
}

.field:has(.g-recaptcha) {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* fallback */
.recaptcha-field {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* misc rows */
.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
}

.links {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    font-size: .92rem;
    font-family: "Poppins", sans-serif;
}

.links a {
    text-decoration: underline;
    color: var(--accent);
    font-family: "Urbanist", sans-serif;
}

/* action buttons */
.actions {
    margin-top: 10px;
}

.btn.full {
    width: 100%;
}

/* divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    color: #9ca3af;
    font-size: .85rem;
    user-select: none;
    font-family: "Poppins", sans-serif;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

/* Validation feedback */
.field-help {
    font-size: .85rem;
    margin-top: 4px;
    min-height: 1.2em;
    line-height: 1.2;
    font-family: "Poppins", sans-serif;
}

.auth-input.is-invalid {
    border-color: #b91c1c;
    box-shadow: 0 0 0 1px #b91c1c;
}

.auth-input.is-invalid:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 2px rgba(185, 28, 28, 0.2);
}
