:root{
  --bg: #ffffff;
  --text: #0b1020;
  --muted: #4b5563;
  --alt: #fbfbfd;
  --border: rgba(11, 16, 32, .10);
  --shadow: 0 18px 40px rgba(11, 16, 32, .10);
  --accent: #dc2626;
  --accent2:#f97316;
  --ink: #111827;
  --radius: 18px;
  --header-offset: 86px;
}
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.55;
}
.section{ scroll-margin-top: var(--header-offset); }
.container{
  width: min(1100px, calc(100% - 40px));
  margin-inline: auto;
}
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--border);
}
.header__inner{
  display:flex;
  align-items:center;
  justify-content: flex-start;
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:inherit;
  min-width: 0;
}
.brand__logo{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(220,38,38,.25);
  border-radius: 14px;
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(249,115,22,.20), transparent 55%),
    radial-gradient(120% 120% at 80% 90%, rgba(220,38,38,.18), transparent 55%),
    linear-gradient(180deg, #fff, #fff7ed);
  color: var(--accent);
  box-shadow: 0 14px 30px rgba(220, 38, 38, .12);
  flex: 0 0 auto;
}
.brand__text{ min-width:0; }
.brand__name{ font-weight: 900; letter-spacing: -.02em; }
.brand__tagline{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top: -2px;
}
.hero{
  position: relative;
  overflow:hidden;
  padding: 58px 0 38px;
}
.auth-page{
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
}
.auth-page__inner{
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.auth-copy h1{
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -.03em;
  max-width: 700px;
}
.auth-copy p{
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
}
.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(220,38,38,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(220,38,38,.08);
}
.auth-card{
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(11,16,32,.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
}
.auth-card__head h2{
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.1;
}
.auth-card__head p{
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 14px;
}
.auth-form{
  display: grid;
  gap: 14px;
}
.field{
  display: grid;
  gap: 8px;
}
.field__label{
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.field__input{
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(11,16,32,.12);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.field__input::placeholder{
  color: #9ca3af;
}
.field__input:focus{
  border-color: rgba(220,38,38,.45);
  box-shadow: 0 0 0 4px rgba(220,38,38,.10);
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,.35);
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 900;
  text-decoration:none;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
  box-shadow: 0 14px 28px rgba(220,38,38,.18);
  cursor: pointer;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); opacity: .95; }
.btn--block{
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}
.auth-note{
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(220,38,38,.18);
  background: rgba(220,38,38,.06);
  color: #991b1b;
  font-size: 14px;
  font-weight: 600;
}
.auth-note.is-visible{
  display: block;
}
.auth-card__footer{
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.auth-card__footer a{
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.auth-card__footer a:hover{
  color: var(--accent);
}
.hero__bg{
  position:absolute;
  inset: -160px -140px auto -140px;
  height: 520px;
  background:
    radial-gradient(closest-side at 20% 20%, rgba(220,38,38,.18), transparent 70%),
    radial-gradient(closest-side at 70% 10%, rgba(249,115,22,.18), transparent 70%),
    radial-gradient(closest-side at 80% 70%, rgba(49,46,129,.12), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}
.section{ padding: 58px 0; }
.section--alt{
  background: linear-gradient(180deg, #fff, var(--alt));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.footer{
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 13px;
}
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}
@media (max-width: 920px){
  .auth-page__inner{
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .auth-copy h1{
    max-width: none;
  }
  .auth-copy p{
    max-width: none;
  }
}
@media (max-width: 720px){
  :root{ --header-offset: 66px; }
  .container{ width: min(1100px, calc(100% - 28px)); }
  .header__inner{ padding: 8px 0; }
  .brand{ gap: 10px; }
  .brand__logo{
    width:36px;
    height:36px;
    border-radius: 12px;
  }
  .brand__tagline{ display:none; }
  .hero{
    padding: 34px 0 24px;
  }
  .auth-card{
    padding: 18px;
    border-radius: 20px;
  }
  .auth-copy h1{
    font-size: clamp(28px, 8vw, 38px);
  }
  .auth-copy p{
    font-size: 15px;
  }
}
