/* ── WelcomeBookMaker — Auth pages ──────────────────────────────────────── */
@import url("/css/site.css");

.auth-layout { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }

.auth-hero {
    position: relative; background: linear-gradient(150deg, var(--c-brand), var(--c-brand-dk));
    color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.auth-hero .hero-logo { font-size: 2.4rem; margin-bottom: 22px; }
.auth-hero h1 { color: #fff; font-size: 2.4rem; line-height: 1.15; margin-bottom: 28px; }
.auth-hero h1 em { color: #ffe2c9; font-style: normal; }
.auth-hero ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.auth-hero li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.92); font-size: 1.02rem; }
.auth-hero li .tick { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; flex: none; }
.auth-hero .deco { position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.06); }

.auth-card-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--c-bg-warm); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 38px 36px; }
.auth-brand { display: flex; align-items: center; gap: .5em; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; margin-bottom: 24px; }
.auth-brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--c-brand), var(--c-brand-dk)); display: grid; place-items: center; color: #fff; }

.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-title { font-size: 1.6rem; margin-bottom: .25rem; }
.auth-sub { color: var(--c-ink-soft); margin-bottom: 22px; }

.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: .8em; border: 1.5px solid var(--c-line); border-radius: 999px; background: #fff; font-weight: 600; color: var(--c-ink); cursor: pointer; transition: border-color .2s; text-decoration: none; }
.btn-google:hover { border-color: var(--c-brand); color: var(--c-ink); }
.btn-google img { width: 20px; height: 20px; }
.auth-divider { text-align: center; color: var(--c-muted); font-size: .85rem; margin: 18px 0; position: relative; }
.auth-divider::before, .auth-divider::after { content: ""; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--c-line); }
.auth-divider::before { left: 0; } .auth-divider::after { right: 0; }

.auth-form { display: grid; gap: 16px; }
.field-group { display: grid; gap: 6px; }
.field-group label { font-weight: 600; font-size: .9rem; color: var(--c-ink); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; padding: .8em 2.6em .8em 1em; border: 1.5px solid var(--c-line); border-radius: 10px; font-size: 1rem; font-family: var(--font-body); transition: border-color .15s, box-shadow .15s; }
.input-wrap input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-lt); }
.toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--c-muted); padding: 8px; font-size: .9rem; }
.link-btn { background: none; border: 0; color: var(--c-brand); font-weight: 600; cursor: pointer; font-size: .88rem; padding: 0; }
.link-btn:hover { color: var(--c-brand-dk); text-decoration: underline; }

.field-error { color: #c0392b; font-size: .82rem; min-height: 1em; }
.form-error { background: #fdecea; color: #c0392b; padding: 10px 14px; border-radius: 8px; font-size: .9rem; }
.form-success { background: var(--c-brand-lt); color: var(--c-brand-dk); padding: 12px 14px; border-radius: 8px; font-size: .9rem; display: flex; gap: 8px; align-items: center; }
.hidden { display: none !important; }

.btn-auth { width: 100%; padding: .9em; border: 0; border-radius: 999px; background: var(--c-brand); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .2s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-auth:hover { background: var(--c-brand-dk); }
.btn-auth:disabled { opacity: .6; cursor: default; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-switch { text-align: center; margin-top: 20px; color: var(--c-ink-soft); font-size: .92rem; }
.back-btn { background: none; border: 0; color: var(--c-ink-soft); cursor: pointer; font-size: .88rem; margin-bottom: 14px; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.back-btn:hover { color: var(--c-brand); }

.pw-strength { display: grid; gap: 5px; }
.pw-strength-bar { height: 5px; background: var(--c-line); border-radius: 999px; overflow: hidden; }
.pw-strength-fill { height: 100%; width: 0; background: #c0392b; transition: width .25s, background .25s; }
.pw-strength-label { font-size: .78rem; color: var(--c-muted); }

.auth-legal { color: var(--c-muted); font-size: .82rem; margin-top: 22px; text-align: center; }
.auth-legal a { color: var(--c-ink-soft); }

@media (max-width: 860px) {
    .auth-layout { grid-template-columns: 1fr; }
    .auth-hero { display: none; }
}
