﻿@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/mulish-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/mulish-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/Mulish-Variable.ttf') format('truetype');
}

:root {
  --brand: #FE391F;
  --brand-dark: #D62A14;
  --brand-soft: #FFE8E4;
  --ink: #0F1419;
  --ink-2: #2C3038;
  --muted: #6B7280;
  --muted-2: #9CA3AF;
  --line: #E5E7EB;
  --line-soft: #F3F4F6;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 100vh;
}

/* LEFT — BRAND PANEL */
.left {
  background: var(--ink);
  color: #fff;
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.left::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -180px;
  width: 540px;
  height: 540px;
  background: var(--brand);
  opacity: 0.18;
  border-radius: 50%;
  filter: blur(60px);
}

.left::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: #FE5A1F;
  opacity: 0.10;
  border-radius: 50%;
  filter: blur(80px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: var(--brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(254, 57, 31, 0.4);
}

.brand-name {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.4px;
}

.brand-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}

.hero {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(254, 57, 31, 0.12);
  color: #FFB3A6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 28px;
  border: 1px solid rgba(254, 57, 31, 0.3);
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
}

.hero h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--brand);
  font-style: normal;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
  max-width: 420px;
}

.stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.stat-num em {
  color: var(--brand);
  font-style: normal;
}

.stat-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
  font-weight: 600;
}

/* RIGHT — FORM PANEL */
.right {
  background: var(--surface);
  padding: 44px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.top-link {
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.top-link a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}

.top-link a:hover {
  text-decoration: underline;
}

.form-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
}

.form-wrap h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.form-wrap .sub {
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.sso-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s;
}

.sso-btn:hover {
  border-color: var(--ink);
  background: var(--bg);
}

.sso-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.field {
  position: relative;
  margin-bottom: 20px;
}

.form-error {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 48, 34, 0.24);
  border-radius: 8px;
  background: rgba(255, 48, 34, 0.08);
  color: #ff3022;
  font-size: 13px;
  font-weight: 700;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  transition: all 0.15s;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.field input::placeholder {
  color: var(--muted-2);
}

.field__error {
  position: absolute;
  left: 5px;
  top: calc(100% + 2px);
  display: none;
  font-size: 12px;
  line-height: 1.2;
  color: #ff3022;
  pointer-events: none;
}

.field__error.is-visible {
  display: block;
}

.field input.is-error {
  border-color: #ff3022;
}

.field input.is-error:focus {
  border-color: #ff3022;
  box-shadow: 0 0 0 4px rgba(255, 48, 34, 0.15);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 48px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle img {
  width: 20px;
  height: 20px;
  display: block;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--brand);
  border-radius: 4px;
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.forgot {
  font-size: 13px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.forgot:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 14px 16px;
  background: var(--brand);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 4px 14px rgba(254, 57, 31, 0.25);
}

.btn-primary:hover {
  background: var(--brand-dark);
  box-shadow: 0 6px 20px rgba(254, 57, 31, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.legal {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
}

.legal a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.legal a:hover {
  color: var(--brand);
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--brand);
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
  }

  .left {
    padding: 32px;
    min-height: auto;
  }

  .left .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 20px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .right {
    padding: 32px;
  }
}
