@import url(/fonts/fonts.css);

:root {
  --page: #fff; --soft: #F4F4F5; --soft2: #E4E4E7; --text: #11181C; --muted: #71717A;
  --primary: #006FEE; --danger-bg: #FEE7EF; --danger-fg: #C20E4D;
  color-scheme: light;
}
html.dark {
  --page: #000; --soft: #27272A; --soft2: #3F3F46; --text: #ECEDEE; --muted: #A1A1AA;
  --danger-bg: rgba(243, 18, 96, .18); --danger-fg: #F871A0;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: Inter, system-ui, sans-serif; background: var(--page); color: var(--text); -webkit-font-smoothing: antialiased; }

.page { min-height: 100vh; height: 100vh; display: flex; }
@media (max-width: 900px) { .page { height: auto; } }
.form-side { flex: 1 1 520px; display: flex; flex-direction: column; padding: 24px 32px; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.mark { height: 30px; width: auto; display: block; }
.mark-d { display: none; }
html.dark .mark-d { display: block; }
html.dark .mark-l { display: none; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--soft); color: var(--text); }
.icon-btn .sun { display: none; }
html.dark .icon-btn .sun { display: block; }
html.dark .icon-btn .moon { display: none; }

.form-wrap { width: 100%; max-width: 380px; margin: auto; padding: 40px 0; display: flex; flex-direction: column; gap: 24px; }
.head h1 { margin: 0 0 8px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.head p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; }
.field input { width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--soft); color: var(--text); padding: 0 14px; font: 15px Inter, system-ui, sans-serif; transition: background .15s; }
.field input:hover { background: var(--soft2); }
.field input:focus { outline: 2px solid var(--primary); outline-offset: 2px; background: var(--soft); }
.pw { position: relative; }
.pw input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pw-toggle:hover { color: var(--text); }
.pw-toggle .eye-off { display: none; }
.pw-toggle[aria-pressed="true"] .eye { display: none; }
.pw-toggle[aria-pressed="true"] .eye-off { display: block; }

.submit { height: 48px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font: 600 15px Inter, system-ui, sans-serif; cursor: pointer; margin-top: 8px; transition: opacity .15s, transform .1s; }
.submit:hover { opacity: .9; }
.submit:active { transform: scale(.98); }
.submit:disabled { opacity: .6; cursor: progress; }

.alert { display: flex; gap: 10px; align-items: flex-start; background: var(--danger-bg); color: var(--danger-fg); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.alert svg { flex: none; margin-top: 1px; }
.alert[hidden] { display: none; }
.alert .i-ok { display: none; }
.alert.ok { background: var(--soft); color: var(--text); }
.alert.ok .i-ok { display: block; }
.alert.ok .i-err { display: none; }

.brand-side { flex: 1 1 600px; margin: 12px; border-radius: 24px; background: var(--soft); position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 56px 0 0 56px; min-height: 0; }
.brand-head { display: flex; flex-direction: column; gap: 14px; padding-right: 56px; }
.logo { width: 160px; height: auto; display: block; }
.logo-dark, .shot-dark { display: none; }
html.dark .logo-dark, html.dark .shot-dark { display: block; }
html.dark .logo-light, html.dark .shot-light { display: none; }
html.dark .brand-side { background: #18181B; }
.tagline { margin: 0; font-size: 17px; font-weight: 500; color: var(--muted); }
.shot { position: absolute; left: 56px; top: 200px; right: 0; bottom: 0; border-top-left-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 20px 50px rgba(0,0,0,.12); }
html.dark .shot { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 20px 50px rgba(0,0,0,.5); }
.shot img { width: 1100px; max-width: none; height: auto; display: block; }

@media (max-width: 900px) {
  .brand-side { display: none; }
  .form-side { padding: 20px; }
}
