/* craize.io – Login */
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #07090f; --bg-2: #0b0f1a; --line: rgba(255,255,255,0.08); --line-strong: rgba(255,255,255,0.16);
  --text: #eef2f8; --text-2: #aab4c6; --text-3: #6b7689;
  --accent: #4cf0ff; --accent-2: #3b6cff; --hot: #ff3d7f; --ok: #5df2a3;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.bg-grid { position: fixed; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 10%, transparent 70%); opacity: 0.5; }
.bg-glow { position: fixed; z-index: -3; pointer-events: none; border-radius: 50%; filter: blur(120px); }
.bg-glow.a { width: 55vw; height: 55vw; left: -15vw; top: -20vw; background: var(--accent-2); opacity: 0.3; }
.bg-glow.b { width: 40vw; height: 40vw; right: -15vw; bottom: -15vw; background: var(--accent); opacity: 0.12; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.noise { position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

.top { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(16px, 4vw, 40px); }
.logo img { height: 32px; width: auto; }
.top-right { display: flex; align-items: center; gap: 10px; }
.status { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.lang { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; background: none; border: 1px solid var(--line-strong); color: var(--text-2); border-radius: 999px; padding: 7px 12px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.lang:hover { color: var(--text); border-color: var(--accent); }

.wrap { flex: 1; display: grid; place-items: center; padding: 24px 16px 48px; }
.card {
  width: 100%; max-width: 440px; border: 1px solid var(--line-strong); border-radius: 22px; padding: clamp(28px, 5vw, 40px);
  background: linear-gradient(180deg, rgba(17,24,39,0.85), rgba(11,15,26,0.9)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -40px rgba(59,108,255,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: card-in 0.7s var(--ease);
}
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
.card[hidden] { display: none; }
.card-head { margin-bottom: 26px; }
.kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 600; }
.card h1 { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; margin: 8px 0 8px; line-height: 1.1; }
.card-head p { margin: 0; color: var(--text-2); font-size: 15px; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.field .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field .row a { font-size: 13px; color: var(--accent); font-weight: 500; }
.field .row a:hover { text-decoration: underline; }
.field input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(7,9,15,0.6); color: var(--text);
  font: inherit; font-size: 15.5px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(76,240,255,0.12); }
.field input.invalid { border-color: var(--hot); }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #0b0f1a inset; -webkit-text-fill-color: var(--text); }
.pw { position: relative; display: block; }
.pw input { padding-right: 46px; }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--text-3); width: 36px; height: 36px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; }
.eye:hover { color: var(--text); background: rgba(255,255,255,0.06); }

.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); margin: 4px 0 20px; cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--line-strong); background: rgba(7,9,15,0.6); margin: 0; cursor: pointer; display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 10px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305070c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat; }

.alert { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; border: 1px solid rgba(255,61,127,0.35); background: rgba(255,61,127,0.08); color: #ffb3cb; animation: shake 0.4s; }
.alert[hidden] { display: none; }
.alert::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--hot); color: #fff; font-weight: 700; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.btn {
  position: relative; width: 100%; padding: 14px 20px; border-radius: 12px; border: 0; font: inherit; font-weight: 600; font-size: 15.5px;
  background: var(--text); color: #05070c; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s; overflow: hidden;
}
.btn:hover { background: var(--accent); }
.btn:active { transform: scale(0.985); }
.btn:disabled { cursor: progress; }
.btn .spinner { position: absolute; inset: 0; display: grid; place-items: center; background: inherit; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.btn .spinner::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(5,7,12,0.25); border-top-color: #05070c; animation: spin 0.8s linear infinite; }
.btn.loading .spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot-note { margin: 22px 0 0; text-align: center; font-size: 14px; color: var(--text-3); }
.foot-note a { color: var(--accent); font-weight: 500; }
.foot-note a:hover { text-decoration: underline; }

.done { text-align: center; }
.done-icon { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--accent); background: rgba(76,240,255,0.1); border: 1px solid rgba(76,240,255,0.3); }
.done p { color: var(--text-2); font-size: 15px; margin: 0; }
.done .foot-note { margin-top: 24px; }

.bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 20px clamp(16px, 4vw, 40px); font-size: 13px; color: var(--text-3); }
.bottom nav { display: flex; gap: 18px; }
.bottom a:hover { color: var(--text); }

@media (max-width: 520px) { .status { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
