/* Koodi login and sign-up pages. Built from design/koodi/login.html */
:root { --bg: #fff; --bg-soft: #f6f6f7; --line: #e7e7ea; --text: #0e0f11; --muted: #5d6068; --ink: #0e0f11; --on-ink: #fff; --blue: #3a95d2; --orange: #e67e22; --green: #2fbf71; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #0d0e10; --bg-soft: #17181c; --line: #26282d; --text: #f3f4f6; --muted: #a7abb3; --ink: #f3f4f6; --on-ink: #0d0e10; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); color: var(--text); font: 15px/1.6 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }

.side { position: relative; overflow: hidden; background: #0e0f11; color: #fff; padding: 48px; display: flex; flex-direction: column; }
.side::before { content: ""; position: absolute; right: -160px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(244, 143, 177, .45), transparent 65%); }
.side::after { content: ""; position: absolute; left: -160px; bottom: -200px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(144, 202, 249, .4), transparent 65%); }
.side > * { position: relative; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 24px/1 'Inter Tight', sans-serif; letter-spacing: -0.04em; text-decoration: none; width: fit-content; }
.logo-img { display: block; height: 34px; width: auto; max-width: 180px; object-fit: contain; }
.mark { width: 34px; height: 34px; border-radius: 10px; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 6px; }
.mark i { border-radius: 3px; }
.mark i:nth-child(1) { background: var(--blue); grid-row: span 2; }
.mark i:nth-child(2) { background: var(--orange); }
.mark i:nth-child(3) { background: var(--green); }
.side h1 { margin-top: auto; font: 700 clamp(34px, 4vw, 52px)/1.05 'Inter Tight', sans-serif; letter-spacing: -0.035em; max-width: 460px; }
.side p { color: #c4c7ce; margin-top: 16px; max-width: 420px; font-size: 16px; }
.pill { display: inline-flex; gap: 8px; align-items: center; margin-top: 28px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); font-size: 13.5px; width: fit-content; }
.pill b { color: #8fe0b5; }

.form-side { display: grid; place-items: center; padding: 48px 24px; }
.panel { width: min(400px, 100%); }
.switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 28px; }
.switch a { height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.switch .on { background: var(--bg); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
h2 { font: 700 32px/1.1 'Inter Tight', sans-serif; letter-spacing: -0.03em; }
.lead { color: var(--muted); margin: 8px 0 24px; }
.migrate { display: flex; gap: 12px; padding: 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid var(--line); margin-bottom: 22px; font-size: 14px; }
.migrate i { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; }
.migrate span { color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }
.alert-error { background: #fde8e7; color: #a4251b; border: 1px solid #f6c2bd; }
.alert-success { background: #e4f6ec; color: #136c3c; border: 1px solid #b9e6cb; }
label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 13px; font-weight: 500; color: var(--muted); }
input[type="email"], input[type="password"], input[type="text"] { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; margin-bottom: 16px; }
input:focus { outline: 2px solid #0d99ff; border-color: transparent; }
.captcha { margin: 4px 0 16px; }
.btn { width: 100%; height: 50px; border: 0; border-radius: 14px; background: var(--ink); color: var(--on-ink); font: 600 15.5px Inter, sans-serif; cursor: pointer; margin-top: 4px; }
.btn:hover { opacity: .92; }
.fine { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }
.fine a { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  body { grid-template-columns: minmax(0, 1fr); }
  .side { min-height: 0; padding: 28px 24px 32px; }
  .side h1 { margin-top: 36px; font-size: 32px; }
  .side p { display: none; }
  .pill { margin-top: 18px; }
}

/* Main logo on the dark panel when no dark-background logo is uploaded */
.logo-on-card { height: 38px; padding: 8px 12px; border-radius: 12px; background: #fff; box-sizing: content-box; }
