/* Sign in / Create account pages: cream page, one rounded card, pill fields, small green pill button. */

/* The auth pages have no site header or footer */
#ftco-navbar,
.top-bar,
.footer,
.ftco-footer,
footer { display: none !important; }

html body .auth-modern {
    min-height: 100vh;
    background: #f2f0e9;
    padding: 56px 20px 70px;
    font-family: var(--font-body, 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif);
    color: #1b1b1b;
}

.auth-modern .auth-column { max-width: 580px; margin: 0 auto; }

.auth-modern .auth-brand {
    display: inline-block;
    margin-bottom: 34px;
    font-family: var(--font-display, 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #151515;
    text-decoration: none;
}
.auth-modern .auth-brand:hover { color: var(--accent-ink, #1f8f2b); text-decoration: none; }

.auth-modern .auth-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #2b2b2b;
}

html body .auth-modern h1 {
    margin: 0 0 26px;
    font-family: var(--font-display, 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 50px);
    line-height: 1.05;
    letter-spacing: 0;
    text-transform: none;
    color: #151515;
}

/* ---------- Card ---------- */
.auth-modern .auth-card {
    background: #f4f2ec;
    border: 1px solid #e4e1d8;
    border-radius: 28px;
    padding: 26px 28px 30px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
}

.auth-modern .auth-card-title {
    margin: 0 0 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e4e1d8;
    font-size: 19px;
    font-weight: 600;
    color: #1b1b1b;
}

/* ---------- Fields ---------- */
.auth-modern .auth-field { margin-bottom: 18px; }

.auth-modern .auth-field label {
    display: block;
    margin: 0 0 8px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #1b1b1b;
}

.auth-modern .auth-field input {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    border: 1px solid #e4e1d8;
    border-radius: 999px;
    background: #faf9f6;
    color: #1b1b1b;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.auth-modern .auth-field input:focus {
    border-color: var(--accent, #43d049);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb, 67, 208, 73), .22);
}
.auth-modern .auth-field input::placeholder { color: #9a9a95; }

.auth-modern .auth-field input[type="file"] {
    height: auto;
    padding: 8px 14px;
    border-radius: 18px;
}
.auth-modern .auth-field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 8px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--accent, #43d049);
    color: var(--on-accent, #0c1a0c);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-modern .auth-hint { display: block; margin-top: 6px; font-size: 12.5px; color: #77756e; }

.auth-modern .auth-row { display: flex; gap: 16px; }
.auth-modern .auth-row .auth-field { flex: 1; min-width: 0; }

/* ---------- Messages ---------- */
.auth-modern .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}
.auth-modern .auth-alert.error { background: #fdeeee; color: #a11d1d; border: 1px solid #f4c9c9; }
.auth-modern .auth-alert.success { background: #eefaf0; color: #1d6b2a; border: 1px solid #c6ebcc; }

/* ---------- Button and links ---------- */
.auth-modern .auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 30px;
    border: 0;
    border-radius: 999px;
    background: var(--accent, #43d049);
    color: var(--on-accent, #0c1a0c);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.auth-modern .auth-submit:hover { background: var(--accent-deep, #35b83b); }

.auth-modern .auth-terms { margin: 4px 0 16px; font-size: 12.5px; line-height: 1.6; color: #77756e; }
.auth-modern .auth-terms a { color: var(--accent-ink, #1f8f2b); }

.auth-modern .auth-switch { margin-top: 22px; font-size: 14px; color: #5e5c55; }
.auth-modern .auth-switch a {
    color: var(--accent-ink, #1f8f2b);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
    html body .auth-modern { padding: 36px 16px 50px; }
    .auth-modern .auth-card { padding: 22px 18px 24px; border-radius: 22px; }
    .auth-modern .auth-row { flex-direction: column; gap: 0; }
}

/* ---------- Code step ---------- */
.auth-modern .auth-note { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: #3b3a36; }
.auth-modern .auth-note strong { color: #151515; }

.auth-modern .auth-field input.auth-code {
    height: 58px;
    text-align: center;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: .5em;
    padding-left: 28px;
}

.auth-modern .auth-extra { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 18px; }
.auth-modern .auth-extra form { margin: 0; }
.auth-modern .auth-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent-ink, #1f8f2b);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

/* ---------- Dark mode ---------- */
html[data-theme="dark"] body .auth-modern .auth-note { color: #c9d0de; }
html[data-theme="dark"] body .auth-modern .auth-note strong { color: #fff; }
html[data-theme="dark"] body .auth-modern .auth-linkbtn { color: var(--accent, #43d049); }
html[data-theme="dark"] body .auth-modern { background: #0f1724; color: #e6e9f0; }
html[data-theme="dark"] body .auth-modern .auth-brand { color: #fff; }
html[data-theme="dark"] body .auth-modern .auth-brand:hover { color: var(--accent, #43d049); }
html[data-theme="dark"] body .auth-modern .auth-eyebrow { color: #c9d0de; }
html[data-theme="dark"] body .auth-modern .auth-card { background: #16202f; border-color: #2a3850; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
html[data-theme="dark"] body .auth-modern .auth-card-title { color: #fff; border-bottom-color: #2a3850; }
html[data-theme="dark"] body .auth-modern .auth-field label { color: #e6e9f0; }
html[data-theme="dark"] body .auth-modern .auth-field input { background: #0f1724; border-color: #2a3850; color: #e6e9f0; }
html[data-theme="dark"] body .auth-modern .auth-field input::placeholder { color: #7d8799; }
html[data-theme="dark"] body .auth-modern .auth-hint,
html[data-theme="dark"] body .auth-modern .auth-terms,
html[data-theme="dark"] body .auth-modern .auth-switch { color: #a3adbd; }
html[data-theme="dark"] body .auth-modern .auth-switch a,
html[data-theme="dark"] body .auth-modern .auth-terms a { color: var(--accent, #43d049); }
html[data-theme="dark"] body .auth-modern .auth-alert.error { background: #3a1a20; color: #f5c2c9; border-color: #6b2a35; }
html[data-theme="dark"] body .auth-modern .auth-alert.success { background: #12372a; color: #b7ebd0; border-color: #1f5a43; }
