/* Sign-in, registration and password screens on the public reference skin:
   warm paper, Instrument Serif, ink pill actions and the logo-blue accent. */
body.fk-auth {
    --au-bg: #F4F1EA; --au-surface: #FFFDF8; --au-raised: #EBE6DB; --au-ink: #141413; --au-muted: #66625A;
    --au-line: #D6CFC1; --au-control: #C6BEAE; --au-accent: #1F67A6; --au-accent-strong: #17518A; --au-soft: #DCE8F4; --au-mark: #F39C33;
    --au-display: 'Instrument Serif', 'Times New Roman', serif; --au-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --au-mono: 'Geist Mono', ui-monospace, monospace;
    min-height: 100vh; margin: 0; background: var(--au-bg) !important; color: var(--au-ink) !important; font: 400 16px/1.6 var(--au-body) !important; color-scheme: light;
}
body.fk-auth.dark {
    --au-bg: #10100F; --au-surface: #1B1A18; --au-raised: #2B2A27; --au-ink: #E6E1D6; --au-muted: #A39E92;
    --au-line: #34322D; --au-control: #4A4740; --au-accent: #7DB8EC; --au-accent-strong: #A3CDF2; --au-soft: #18283A; color-scheme: dark;
}
body.fk-auth .fk-auth-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(20px, 4vw, 56px); border-bottom: 1px solid var(--au-line); background: transparent !important; }
body.fk-auth .fk-auth-header img { height: 48px !important; width: auto !important; max-width: none !important; }
body.fk-auth .fk-auth-header > a:last-child { color: var(--au-ink) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
body.fk-auth .fk-auth-header > a:last-child:hover { color: var(--au-accent) !important; }

body.fk-auth .fk-auth-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, 480px); align-items: center; gap: clamp(32px, 6vw, 96px); max-width: 1240px; margin: 0 auto; padding: clamp(32px, 6vw, 80px) clamp(20px, 4vw, 56px); overflow: hidden; }
/* The logo aperture as a large, quiet watermark behind the story. */
body.fk-auth .fk-auth-layout::before { content: ""; position: absolute; left: -140px; top: 50%; width: 560px; height: 560px; margin-top: -280px; background: url('../img/fotoklikk-logo-01-300x.png') 0 50% / auto 100% no-repeat; opacity: .06; pointer-events: none; }
body.fk-auth .fk-auth-story { position: relative; color: var(--au-ink); }
body.fk-auth .fk-auth-story .fk-site-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--au-muted) !important; font: 500 11px/1.4 var(--au-mono) !important; letter-spacing: .14em; text-transform: uppercase; }
body.fk-auth .fk-auth-story .fk-site-eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--au-mark); }
body.fk-auth .fk-auth-story h1 { margin: 0 0 20px; color: var(--au-ink) !important; font: 400 clamp(44px, 5.4vw, 78px)/.98 var(--au-display) !important; letter-spacing: -.02em; text-wrap: balance; }
body.fk-auth .fk-auth-story > p { max-width: 46ch; margin: 0 0 30px; color: var(--au-muted) !important; font-size: 18px; line-height: 1.6; }
body.fk-auth .fk-auth-values { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--au-line); }
body.fk-auth .fk-auth-values li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--au-line); }
body.fk-auth .fk-auth-values li > span { color: var(--au-accent) !important; font: 400 24px/1 var(--au-display); }
body.fk-auth .fk-auth-values strong { display: block; color: var(--au-ink); font-weight: 600; }
body.fk-auth .fk-auth-values p { margin: 2px 0 0; color: var(--au-muted) !important; font-size: 14px; }

body.fk-auth .fk-auth-card { position: relative; padding: clamp(24px, 3vw, 36px) !important; border: 1px solid var(--au-line) !important; border-radius: 24px !important; background: var(--au-surface) !important; color: var(--au-ink) !important; box-shadow: 0 40px 80px -48px rgb(20 20 19 / 45%), 0 2px 6px rgb(20 20 19 / 5%) !important; }
body.fk-auth .fk-auth-card::before { content: ""; position: absolute; inset: 0 24px auto; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--au-accent), var(--au-mark)); }
body.fk-auth .fk-auth-card > header h2 { margin: 0 0 6px; color: var(--au-ink) !important; font: 400 clamp(32px, 3vw, 40px)/1.05 var(--au-display) !important; }
body.fk-auth .fk-auth-card > header p { margin: 0 0 22px; color: var(--au-muted) !important; font-size: 15px; }
body.fk-auth .fk-auth-card label:not(.inline-flex) { display: block; margin: 0 0 6px; color: var(--au-ink) !important; font: 600 13px/1.4 var(--au-body) !important; }
body.fk-auth .fk-auth-card :is(input[type=email], input[type=password], input[type=text], input[type=number], input[type=date], select, textarea) {
    width: 100%; min-height: 48px; padding: 10px 14px !important; border: 1px solid var(--au-control) !important; border-radius: 12px !important; background: var(--au-bg) !important; color: var(--au-ink) !important; font: 400 16px/1.4 var(--au-body) !important; box-shadow: none !important; outline: 0; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body.fk-auth .fk-auth-card :is(input, select, textarea):focus-visible { outline: 2px solid var(--au-ink) !important; outline-offset: 2px; }
body.fk-auth .fk-auth-card :is(input, select, textarea):focus { border-color: var(--au-ink) !important; background: var(--au-surface) !important; box-shadow: 0 0 0 4px var(--au-soft) !important; }
body.fk-auth .fk-auth-card input[type=checkbox] { width: 18px; height: 18px; border-radius: 5px !important; border-color: var(--au-control) !important; accent-color: var(--au-accent); color: var(--au-accent) !important; }
body.fk-auth .fk-auth-card :is(.text-gray-600, .text-gray-700, .text-sm) { color: var(--au-muted) !important; }
body.fk-auth .fk-auth-card a { color: var(--au-accent) !important; text-decoration: none !important; font-weight: 500; }
body.fk-auth .fk-auth-card a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
body.fk-auth .fk-auth-card .flex.items-center.justify-end { flex-direction: column-reverse; align-items: stretch !important; gap: 14px; }
body.fk-auth .fk-auth-card .flex.items-center.justify-end > a { text-align: center; }
body.fk-auth .fk-auth-card button[type=submit] { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; margin: 0 !important; padding: 12px 22px !important; border: 1px solid var(--au-ink) !important; border-radius: 999px !important; background: var(--au-ink) !important; color: var(--au-bg) !important; font: 600 16px/1.2 var(--au-body) !important; letter-spacing: 0 !important; text-transform: none !important; transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease !important; }
body.fk-auth .fk-auth-card button[type=submit]:hover { background: var(--au-accent) !important; border-color: var(--au-accent) !important; color: #fff !important; transform: translateY(-1px); box-shadow: 0 14px 28px -16px rgb(31 103 166 / 70%); }
body.fk-auth .fk-auth-card button[type=submit]::after { content: "→"; transition: transform .25s ease; }
body.fk-auth .fk-auth-card button[type=submit]:hover::after { transform: translateX(4px); }
body.fk-auth .fk-auth-card :is(.local-account-help, [class*="bg-"]:not(button)) { border: 1px solid var(--au-line) !important; border-radius: 16px !important; background: var(--au-bg) !important; color: var(--au-ink) !important; }
body.fk-auth .fk-auth-card .local-account-help h2 { font: 500 11px/1.4 var(--au-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--au-muted) !important; }
body.fk-auth .fk-auth-card :is(.text-red-600, .text-red-500, [class*="text-red"]) { color: #B3261E !important; }
body.fk-auth footer { padding: 24px 20px 32px; color: var(--au-muted) !important; font-size: 12px; text-align: center; }

@keyframes au-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes au-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
    body.fk-auth .fk-auth-story > * { animation: au-rise .8s cubic-bezier(.2,.7,.2,1) both; }
    body.fk-auth .fk-auth-story > :nth-child(2) { animation-delay: .06s; }
    body.fk-auth .fk-auth-story > :nth-child(3) { animation-delay: .12s; }
    body.fk-auth .fk-auth-story > :nth-child(4) { animation-delay: .18s; }
    body.fk-auth .fk-auth-card { animation: au-rise .9s .1s cubic-bezier(.2,.7,.2,1) both; }
}
@media (max-width: 900px) {
    body.fk-auth .fk-auth-layout { grid-template-columns: 1fr; padding-top: 28px; }
    body.fk-auth .fk-auth-layout::before { display: none; }
    body.fk-auth .fk-auth-values { display: none; }
    body.fk-auth .fk-auth-story h1 { font-size: 40px; }
    body.fk-auth .fk-auth-story > p { margin-bottom: 4px; font-size: 16px; }
    body.fk-auth .fk-auth-header img { height: 40px !important; }
}

/* Text links and the "remember me" row were 20px tall, too small to tap. */
body.fk-auth form a.underline.text-sm,
body.fk-auth form label:has(> input[type="checkbox"]) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}
