/* Fastpage: split login / register screen (views/basic_wrapper.php) */
body.login-background, body.register-background { background: #fff !important; }
.fp-auth { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100vh; gap: 10px; padding: 10px; color: #111; }

.fp-auth-form { display: flex; flex-direction: column; padding: 22px 54px; }
.fp-auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; color: #555; }
.fp-auth-logo { font-weight: 700; font-size: 26px; color: #111 !important; text-decoration: none !important; }
.fp-auth-logo img { max-height: 40px; }
.fp-auth-top a:not(.fp-auth-logo) { color: #111; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fp-auth-body { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 56px 0; display: flex; flex-direction: column; justify-content: center; }
.fp-auth-foot { display: flex; gap: 22px; font-size: 14px; color: #777; }
.fp-auth-foot a { color: #777; }

.fp-auth-title { font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 10px; }
.fp-auth-sub { color: #555; font-size: 17px; margin: 0; }

/* Social sign-in first, then "or with email", then the fields */
.fp-auth-fields { display: flex; flex-direction: column; margin-top: 32px !important; }
.fp-auth-fields > * { order: 2; }
.fp-auth-social { order: 0 !important; }
.fp-auth-or { order: 1 !important; display: flex; align-items: center; gap: 14px; color: #888; font-size: 14px; margin: 18px 0 14px; }
.fp-auth-or::before, .fp-auth-or::after { content: ""; flex: 1; height: 1px; background: #e4e4e4; }
.fp-auth-social .mt-2:first-child { margin-top: 0 !important; }
.fp-auth-social .btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 999px; background: #fff; border: 1px solid #d9d9d9; font-weight: 600; color: #111; }
.fp-auth-social .btn:hover { background: #f6f6f6; }

.fp-auth .form-group label { font-weight: 600; color: #111; margin-bottom: 8px; }
.fp-auth .form-control { height: 52px; border-radius: 14px; border: 1px solid #d9d9d9; padding: 0 16px; font-size: 16px; background: #fff; box-shadow: none; }
.fp-auth .form-control:focus { border-color: #111; box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.fp-auth .btn-primary { height: 54px; border-radius: 999px; background: #111 !important; border-color: #111 !important; color: #fff !important; font-weight: 600; font-size: 17px; }
.fp-auth .btn-primary:hover { background: #2a2a2a !important; }
.fp-auth-switch { display: none; } /* the same link is in the header */

/* Right panel: photo with a sample page */
.fp-auth-visual { position: relative; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 32px 120px;
    background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)), url(../images/fp-auth.webp) center/cover no-repeat, #111; }
.fp-auth-phone { width: 100%; max-width: 380px; background: #fff; border-radius: 34px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.fp-auth-bar { text-align: center; font-size: 13px; color: #666; padding: 14px; border-bottom: 1px solid #eee; }
.fp-auth-page { background: #f4f1ec; padding: 28px 22px 22px; text-align: center; }
.fp-auth-avatar { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 14px; background: url(../images/fp-auth.webp) 62% 30%/360px auto no-repeat, #333; }
.fp-auth-name { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.fp-auth-page p { color: #666; font-size: 14px; line-height: 1.5; margin: 6px 0 18px; }
.fp-auth-card { background: #fff; border-radius: 18px; padding: 16px; text-align: left; }
.fp-auth-row { display: flex; justify-content: space-between; }
.fp-auth-card small { color: #777; }
.fp-auth-slots { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.fp-auth-slots span { border: 1px solid #ddd; border-radius: 10px; padding: 5px 10px; font-size: 13px; font-weight: 600; }
.fp-auth-btn { background: #111; color: #fff; text-align: center; border-radius: 12px; padding: 12px; font-weight: 600; }
.fp-auth-caption { position: absolute; left: 32px; right: 32px; bottom: 32px; color: #fff; font-size: 16px; line-height: 1.45; margin: 0; text-align: center; }

@media (max-width: 991px) {
    .fp-auth { grid-template-columns: minmax(0,1fr); padding: 0; }
    .fp-auth-form, .fp-auth-body { min-width: 0; }
    .fp-auth-visual { display: none; }
    .fp-auth-form { padding: 20px 16px; min-height: 100vh; }
    .fp-auth-body { padding: 40px 0; }
    .fp-auth-top { font-size: 14px; flex-wrap: wrap; }
}

/* Premium Style previews (2026-11-18) */
.fp-auth-styles { position: relative; width: 100%; max-width: 400px; aspect-ratio: 460 / 543; }
.fp-auth-style { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .8s ease, transform .8s ease; }
.fp-auth-style.is-on { opacity: 1; transform: none; }
.fp-auth-style img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.fp-auth-style figcaption { position: absolute; top: 14px; left: 14px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(6px); }

/* Partner sign-up page (?pid=): the image covers the whole panel, the title sits above the sign-up title */
.fp-auth-visual-partner { padding: 0; background: #000; }
.fp-partner-visual { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.fp-partner-title { font-size: clamp(26px, 2.6vw, 34px); font-weight: 900; letter-spacing: .02em; line-height: 1; margin: 0 0 14px; text-transform: uppercase; }
.fp-partner-code { margin-top: 18px; }
.fp-partner-code summary { cursor: pointer; font-size: 14px; color: inherit; opacity: .75; }

/* The visual stays half of the page wide but never taller than the screen: it sticks while the form scrolls */
.fp-auth-visual { position: sticky; top: 10px; align-self: start; height: calc(100vh - 20px); height: calc(100dvh - 20px); }
