.usagif_accounts-auth {
    display: grid;
    max-width: 480px;
    gap: 18px;
    margin: 32px auto;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--uga-border);
    border-radius: 6px;
}

.usagif_accounts-auth-copy {
    display: grid;
    gap: 8px;
}

.usagif_accounts-auth-copy > span { display: none; }

.usagif_accounts-auth-copy h2 {
    margin: 0;
    color: var(--uga-ink);
    font-size: 24px;
    line-height: 1.2;
}

.usagif_accounts-auth-copy p,
.usagif_accounts-auth-muted {
    margin: 0;
    color: var(--uga-muted);
}

.usagif_accounts-auth-tabs {
    display: flex;
    margin: -8px -6px 4px;
    border: 1px solid var(--uga-border);
}

.usagif_accounts-auth-tabs a {
    display: flex;
    min-height: 44px;
    min-width: 0;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: var(--uga-wash);
    border-bottom: 3px solid transparent;
    color: var(--uga-blue);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.usagif_accounts-auth-tabs a.is-active {
    background: #fff;
    border-bottom-color: var(--uga-blue);
}

.usagif_accounts-auth-tabs a:hover,
.usagif_accounts-auth-tabs a:focus-visible {
    color: var(--uga-red);
}

.usagif_accounts-auth-google {
    display: grid;
    gap: 12px;
}

.usagif_accounts-google-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid var(--uga-border);
    border-radius: 4px;
    color: var(--uga-ink);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.usagif_accounts-google-button:hover,
.usagif_accounts-google-button:focus-visible {
    background: var(--uga-wash);
    border-color: var(--uga-blue);
    color: var(--uga-red);
}

.usagif_accounts-google-mark { flex: 0 0 auto; }
.usagif_accounts-google-logo { display: block; width: 18px; height: 18px; }

.usagif_accounts-auth-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    color: var(--uga-muted);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.usagif_accounts-auth-divider::before,
.usagif_accounts-auth-divider::after {
    content: "";
    height: 1px;
    background: var(--uga-border);
}

.usagif_accounts-auth-form,
.usagif_accounts-password-form { display: grid; gap: 14px; }

.usagif_accounts-auth-form label,
.usagif_accounts-password-form label {
    display: grid;
    gap: 6px;
    color: var(--uga-ink);
    font-weight: 600;
}

.usagif_accounts-auth-form input:not([type="checkbox"]),
.usagif_accounts-password-form input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid var(--uga-field-border);
    border-radius: 4px;
    color: var(--uga-ink);
    font: inherit;
}

.usagif_accounts-auth-form input:not([type="checkbox"]):focus,
.usagif_accounts-password-form input:focus {
    border-color: var(--uga-blue);
    outline: 2px solid var(--uga-blue);
    outline-offset: 1px;
}

.usagif_accounts-auth-form label.usagif_accounts-auth-check {
    display: flex;
    align-items: center;
    gap: 9px;
    justify-content: flex-start;
}

.usagif_accounts-auth-check input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--uga-blue);
}

.usagif_accounts-auth-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: -4px 0 0;
    color: var(--uga-muted);
    font-size: 14px;
}

.usagif_accounts-auth-switch a {
    color: var(--uga-blue);
    font-weight: 600;
}

.usagif_accounts-auth-switch a:hover,
.usagif_accounts-auth-switch a:focus-visible {
    color: var(--uga-red);
    text-decoration-style: solid;
}

.usagif_accounts-account-notice {
    padding: 10px 12px;
    border-inline-start: 3px solid var(--uga-blue);
    background: var(--uga-wash);
    color: var(--uga-ink);
    font-weight: 600;
}

.usagif_accounts-account-notice.is-error {
    border-color: var(--uga-red);
    background: #fff2f2;
    color: var(--uga-red);
}

.usagif_accounts-auth-trap {
    position: absolute;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.usagif_accounts-auth-turnstile { max-width: 100%; min-width: 0; min-height: 65px; overflow: hidden; }
.usagif_accounts-auth-turnstile[data-size="compact"] { min-height: 140px; }
.usagif_accounts-auth-turnstile iframe { max-width: 100%; }
.usagif_accounts-auth-signed-in { justify-items: start; }

@media (max-width: 560px) {
    .usagif_accounts-auth { padding: 20px; margin-block: 24px; }
    .usagif_accounts-auth-tabs { margin: -4px -2px 2px; }
}
