/* Auth-страницы — стиль Forward Legal (совпадает с основным дашбордом) */

/* Brand fonts */
@font-face {
  font-family: 'Aeroport';
  src: url('https://forwardlegal.com/static/fonts/Aeroport.woff2') format('woff2'),
       url('https://forwardlegal.com/static/fonts/Aeroport.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeroport';
  src: url('https://forwardlegal.com/static/fonts/Aeroport-Medium.woff2') format('woff2'),
       url('https://forwardlegal.com/static/fonts/Aeroport-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Aeroport';
  src: url('https://forwardlegal.com/static/fonts/Aeroport-Bold.woff2') format('woff2'),
       url('https://forwardlegal.com/static/fonts/Aeroport-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Kazimir';
  src: url('https://forwardlegal.com/static/fonts/Kazimir-BlackItalic.woff2') format('woff2'),
       url('https://forwardlegal.com/static/fonts/Kazimir-BlackItalic.woff') format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --fl-black: #000000;
  --fl-white: #ffffff;
  --fl-green: #00a53b;
  --fl-green-deep: #008730;
  --fl-red: #c70f0a;
  --fl-red-deep: #9c0000;
  --fl-g50: #F7F7F7;
  --fl-g100: #EDEDED;
  --fl-g200: #DADADA;
  --fl-g300: #C2C2C2;
  --fl-g500: #7A7A7A;
  --fl-g700: #3D3D3D;
  --fl-border: #E8E8E8;

  --font-sans: 'Aeroport', 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Kazimir', 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--fl-black);
  background: var(--fl-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "kern";
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

/* ---------- Карточка ---------- */
.card {
  width: 100%;
  max-width: 440px;
  background: var(--fl-white);
  border: 1px solid var(--fl-border);
  padding: 48px 44px 40px;
  position: relative;
}

/* Бренд-шапка — как хедер основного дашборда */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--fl-border);
}
.brand-logo {
  display: block;
  flex: 0 0 auto;
}
.brand-logo svg {
  display: block;
  width: 132px;
  height: auto;
}
.brand-name {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fl-g500);
  padding-left: 16px;
  border-left: 1px solid var(--fl-border);
  line-height: 1.3;
}

/* ---------- Заголовки ---------- */
h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fl-black);
  margin: 0 0 10px 0;
}
.subtitle {
  color: var(--fl-g500);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 32px 0;
}

/* ---------- Поля ---------- */
.field { margin-bottom: 18px; }
label {
  display: block;
  font-size: 10px;
  color: var(--fl-g500);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}
input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--fl-g200);
  border-radius: 0;
  font-size: 14px;
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--fl-white);
  color: var(--fl-black);
  transition: border-color 0.15s;
}
input::placeholder {
  color: var(--fl-g300);
}
input:focus {
  outline: none;
  border-color: var(--fl-black);
}
.hint {
  font-size: 12px;
  color: var(--fl-g500);
  margin-top: 6px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  border: 1px solid var(--fl-black);
  border-radius: 0;
  background: var(--fl-black);
  color: var(--fl-white);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--fl-g700); }
.btn.secondary {
  background: var(--fl-white);
  color: var(--fl-black);
}
.btn.secondary:hover { background: var(--fl-g50); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- Ссылки внизу ---------- */
.footer-links {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--fl-border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.footer-links a {
  color: var(--fl-black);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.footer-links a:hover {
  border-bottom-color: var(--fl-black);
}

/* ---------- Сообщения ---------- */
.message {
  padding: 12px 14px;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 20px;
  display: none;
}
.message.error {
  background: var(--fl-white);
  color: var(--fl-red-deep);
  border: 1px solid var(--fl-red);
  border-left: 3px solid var(--fl-red);
  display: block;
}
.message.success {
  background: var(--fl-white);
  color: var(--fl-green-deep);
  border: 1px solid var(--fl-green);
  border-left: 3px solid var(--fl-green);
  display: block;
}
.message.info {
  background: var(--fl-g50);
  color: var(--fl-black);
  border: 1px solid var(--fl-border);
  border-left: 3px solid var(--fl-black);
  display: block;
}

/* ---------- Мелкое ---------- */
.divider {
  margin: 28px 0 24px;
  border-top: 1px solid var(--fl-border);
}

@media (max-width: 480px) {
  .card { padding: 36px 24px 28px; }
  h1 { font-size: 32px; }
}
