/* Sign-in page: one field, then the step the account calls for (signin.js). */

.alert-danger ul { margin: 0; padding: 0; list-style-type: none; }
.alert-danger span { font-weight: bold; }

.signin-fields { display: flex; flex-direction: column; gap: 1rem; }
.signin-step[hidden] { display: none !important; }
.signin-alert { margin: 0; }
.signin-alert[hidden] { display: none !important; }

/* The social buttons, as on the sign-up page */
.btn-social { display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid #d0d5d2; color: #212529; font-size: 1rem; font-weight: 500; box-shadow: 0 1px 2px rgba(16, 24, 20, .05); transition: background-color .15s ease, border-color .15s ease; }
.btn-social svg { width: 1.125rem; height: 1.125rem; margin-right: .75rem; flex: none; }
.btn-social:hover, .btn-social:active, .btn-social:focus { background: #fff !important; border-color: #2a9a5b !important; box-shadow: inset 0 0 0 1px #2a9a5b !important; color: #212529 !important; }

.signin-separator { align-items: center; color: #6f7471; display: flex; text-transform: uppercase; font-size: .875rem; line-height: 1.25rem; white-space: nowrap; gap: 16px; }
.signin-separator i { background-color: #d8d8d8; flex-grow: 1; height: 1px; }

/* Without JavaScript the password field sits under the email field and Next is the no-script Sign in. */
html.js .signin-nojs { display: none; }
html.no-js .signin-next { display: none; }

.signin-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; color: #24844d; font-size: .875rem; line-height: 1.25rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.signin-link:hover, .signin-link:focus { color: #2fac66; text-decoration: underline; }
.signin-center { text-align: center; }
.signin-muted { color: #6f7471; }
.signin-note { margin: 0; color: #555; }
.signin-note[hidden] { display: none; }

/* Field errors: red text under the field, the field outlined */
.signin-field-error { display: none; align-items: flex-start; gap: 6px; margin-top: 6px; color: #dc3545; font-size: .875rem; line-height: 1.25rem; }
.signin-field-error.visible { display: flex; }
.signin-field-error svg { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.signin-field-error a { color: #dc3545; font-weight: 500; text-decoration: underline; }
.form-control.is-invalid { border-color: #dc3545; box-shadow: none; background-image: none; }
.form-control.is-invalid:focus { box-shadow: 0 0 0 .125rem rgba(220, 53, 69, .35); }

/* The account chip on the steps after Next */
.signin-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; padding: 6px 12px; border: 1px solid #d0d7de; border-radius: 6px; background: #fff; font-size: 1rem; line-height: 1.5; }
.signin-chip-id { display: flex; align-items: center; gap: 8px; min-width: 0; }
.signin-chip-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.signin-chip-id svg { flex: none; width: 18px; height: 18px; color: #6f7471; }
.signin-chip-id svg[hidden] { display: none; }

/* Passkey step: while the OS sheet is up */
.signin-pending { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 1.125rem; line-height: 1.75rem; color: #212529; }
.signin-pending .btn-spinner { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; color: #24844d; }
.signin-pending-sub { margin: .5rem 0 0; }
[data-passkey-pending][hidden], [data-passkey-manual][hidden] { display: none !important; }

/* Passkey step */
.signin-keyart { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid #ccdfd4; background: #eaf5ee; border-radius: 6px; }
.signin-keyart-icon { flex: none; width: 48px; height: 48px; border-radius: 24px; background: #24844d; color: #fff; display: flex; align-items: center; justify-content: center; }
.signin-keyart-icon svg { width: 24px; height: 24px; }
.signin-keyart p { margin: 0; font-size: 1rem; line-height: 1.5; color: #1a5533; }

/* Try another way */
.signin-choices-title { margin: 0 0 .5rem; font-size: 1.125rem; line-height: 1.5; font-weight: 500; color: #212529; }
.signin-choices { display: flex; flex-direction: column; border-top: 1px solid #e5e5e7; }
.signin-choice { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 8px; border: 0; border-bottom: 1px solid #e5e5e7; background: transparent; text-align: left; font-size: 1rem; line-height: 1.5; color: #212529; cursor: pointer; text-decoration: none; }
.signin-choice:hover, .signin-choice:focus { background: #f5fbf7; color: #212529; text-decoration: none; }
.signin-choice[hidden] { display: none; }
.signin-choice-icon { flex: none; width: 24px; height: 24px; color: #24844d; display: flex; align-items: center; justify-content: center; }
.signin-choice-icon svg { width: 22px; height: 22px; }
.signin-choice-icon-brand svg { width: 18px; height: 18px; }
.signin-choice-sub { display: block; font-size: .875rem; line-height: 1.25rem; color: #6f7471; font-weight: 400; }
.signin-choice-sub:empty { display: none; }

/* The 6-digit code */
.signin-code { height: 56px; font-size: 1.625rem; font-weight: 500; letter-spacing: .35em; text-align: center; padding-left: calc(.75rem + .35em); }
[data-resend-wait][hidden], [data-resend-ready][hidden] { display: none; }

/* Buttons while a request runs */
.btn-spinner { display: inline-block; width: 1rem; height: 1rem; border: .2rem solid currentColor; border-right-color: transparent; border-radius: 50%; animation: btn-spin .6s linear infinite; vertical-align: -.125em; margin-right: .5rem; }
@keyframes btn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn-spinner { animation: none; } }

/* The featured post column, as before */
.featured-post { display: block; max-width: 80%; margin: 0 auto; text-decoration: none; }
.featured-post:hover h3 { text-decoration: underline; }
.featured-post img { width: 100%; border-radius: 1rem; display: block; margin-bottom: 2rem; }
.featured-post h3, .featured-post p { margin-bottom: 1rem; }
@media screen and (max-width: 767px) {
    .uac-self { background: #fafafa; padding: 1.5rem; border-radius: 1rem; margin-top: 2rem; }
}
