/* Sign in / Register / Reset password forms (account-auth/). Each form brings
   its own page layout (bx_auth_page() in forms.php): the site's standard
   .container, then a centred card styled like .shadow-container. */

.bx-auth-page { padding-top: 40px; padding-bottom: 40px; }
.bx-auth-card {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 14px #0000001c;
    box-sizing: border-box;
}
.bx-auth-card--wide { max-width: 600px; }
@media (max-width: 520px) {
    .bx-auth-page { padding-top: 20px; padding-bottom: 20px; }
    .bx-auth-card { padding: 24px 18px; }
}

.bx-auth {
    --bx-auth-blue: #4472c4;
    --bx-auth-blue-dark: #1f4b99;
    --bx-auth-border: #dddddd;
    --bx-auth-text: #333333;
    --bx-auth-muted: #777777;
    text-align: left;
    color: var(--bx-auth-text);
    font-size: 16px;
}

.bx-auth-card .bx-auth-title { font-size: 26px; line-height: 1.25; font-weight: 700; text-align: center; margin: 0 0 24px; color: #1d2327; }
.bx-auth .bx-auth-title + .bx-auth-lead { margin-top: -12px; }
.bx-auth-lead { color: var(--bx-auth-muted); text-align: center; margin: 0 0 20px; line-height: 1.5; }
.bx-auth-small { font-size: 14px; text-align: center; }

.bx-auth-form { display: grid; gap: 16px; margin: 0; }
.bx-auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .bx-auth-row { grid-template-columns: 1fr; } }

.bx-auth-field { display: grid; gap: 6px; margin: 0; }
.bx-auth-field > span { font-weight: 600; font-size: 15px; }
.bx-auth-field small { color: var(--bx-auth-muted); font-size: 13px; }

.bx-auth .bx-auth-field input,
.bx-auth .bx-auth-field select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--bx-auth-border) !important;
    border-radius: 4px !important;
    font-size: 16px !important; /* stops iOS zooming into the field */
    color: var(--bx-auth-text);
    background: #ffffff;
    box-sizing: border-box;
}
.bx-auth .bx-auth-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 40px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center;
    cursor: pointer;
}
.bx-auth a:not(.bx-auth-button),
.bx-auth .bx-auth-linkbutton { color: var(--bx-auth-blue) !important; text-decoration: none; }
.bx-auth a:not(.bx-auth-button):hover,
.bx-auth .bx-auth-linkbutton:hover { color: var(--bx-auth-blue-dark) !important; text-decoration: underline; }
.bx-auth .bx-auth-field input:focus,
.bx-auth .bx-auth-field select:focus {
    outline: none;
    border-color: var(--bx-auth-blue) !important;
    box-shadow: 0 0 0 3px rgba(68, 114, 196, 0.2);
}

.bx-auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #555555; margin: 0; line-height: 1.5; }
.bx-auth .bx-auth-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
/* Marketing line under the terms box: deliberately small. */
.bx-auth-check--small { font-size: 12px; color: var(--bx-auth-muted); line-height: 1.45; margin-top: -6px; }
.bx-auth .bx-auth-check--small input { width: 15px; height: 15px; margin-top: 1px; }

.bx-auth-button,
.bx-auth a.bx-auth-button {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border: 0;
    border-radius: 4px;
    background: var(--bx-auth-blue);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
}
.bx-auth-button:hover,
.bx-auth-button:focus { background: var(--bx-auth-blue-dark); }

.bx-auth-links { margin: 18px 0 0; text-align: center; font-size: 14px; }
.bx-auth-links span { margin: 0 6px; color: var(--bx-auth-muted); }

.bx-auth-notice { border-radius: 4px; padding: 12px 14px; margin: 0 0 16px; font-size: 14px; }
.bx-auth-notice p { margin: 0; }
.bx-auth-notice p + p { margin-top: 6px; }
.bx-auth-notice--error { background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bd; }
.bx-auth-notice--success { background: #e8f5ec; color: #1e5b32; border: 1px solid #b9e0c5; }

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.bx-auth-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Turnstile: centre the widget, reserve only its own height, and drop the
   line break the plugin adds after it (it left a big gap above the button). */
.bx-auth .cf-turnstile { display: flex; justify-content: center; min-height: 65px; margin: 0; }
.bx-auth .cf-turnstile-br { display: none; }
.bx-auth [hidden] { display: none !important; }
.bx-auth .bx-auth-field input[type="file"] { height: auto; padding: 8px; }
.bx-auth-newsletter { background: #f6f8fc; border: 1px solid #e3e8f2; border-radius: 4px; padding: 12px 14px; display: grid; gap: 8px; }
.bx-auth-newsletter p { margin: 0; font-size: 14px; color: #444444; }
.bx-auth .bx-auth-linkbutton { background: none; border: 0; padding: 0; color: #2271b1; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Finish setting up your account (setup.php): sections as plain groups. */
.bx-setup-section { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; min-width: 0; }
.bx-setup-section legend { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 4px; }
.bx-setup-section + .bx-setup-section { border-top: 1px solid #eeeeee; padding-top: 20px; }
.bx-setup-note { margin: 0; font-size: 14px; color: var(--bx-auth-muted); line-height: 1.5; }
/* The theme gives inputs inside a fieldset a bottom margin; the grid gap does the spacing here. */
.bx-auth .bx-auth-field input, .bx-auth .bx-auth-field select { margin: 0; }

/* Registration successful */
.bx-auth-done { text-align: center; }
.bx-auth-done-icon {
    width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
    background: #e8f5ec; color: #1e7d3c; font-size: 28px; font-weight: 700; line-height: 56px;
}
.bx-auth-done .bx-auth-lead { margin-top: -12px; }
.bx-auth-done .bx-auth-small { color: var(--bx-auth-muted); line-height: 1.5; margin: 16px 0 0; }
.bx-setup-notify { display: grid; gap: 0; border: 1px solid #eeeeee; border-radius: 6px; }
.bx-setup-notify-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.bx-setup-notify-row + .bx-setup-notify-row { border-top: 1px solid #eeeeee; }
.bx-setup-notify-text { display: grid; gap: 3px; min-width: 0; }
.bx-setup-notify-text strong { font-size: 15px; }
.bx-setup-notify-text small { font-size: 13px; color: var(--bx-auth-muted); line-height: 1.4; }
.bx-setup-notify-channels { display: grid; gap: 8px; flex: none; }
@media (max-width: 520px) {
    .bx-setup-notify-row { flex-direction: column; align-items: flex-start; }
    .bx-setup-notify-channels { grid-auto-flow: column; gap: 20px; }
}
