:root{
  --bg-1:#07142f;
  --bg-2:#0b1f46;
  --card:rgba(255,255,255,0.08);
  --card-border:rgba(255,255,255,0.14);
  --text:#f4f7fb;
  --muted:#b6c4dd;
  --primary:#3db8ff;
  --primary-hover:#1ea7f3;
  --shadow:0 18px 50px rgba(0,0,0,.28);
  --danger:#d83b3b;
  --success:#1e9c59;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  min-height:100%;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top, rgba(61,184,255,.08), transparent 32%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

body{
  min-height:100vh;
}

a{
  color:inherit;
  text-decoration:none;
}

.page{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
}

.shell{
  width:100%;
  max-width:1120px;
}

.hero{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}

.card{
  background:var(--card);
  border:1px solid var(--card-border);
  border-radius:28px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
}

.hero-copy{
  padding:48px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(61,184,255,.10);
  border:1px solid rgba(61,184,255,.22);
  color:#d8efff;
  font-size:14px;
  margin-bottom:18px;
}

.title{
  font-size:60px;
  line-height:1.02;
  font-weight:800;
  margin:0 0 14px;
  letter-spacing:-0.03em;
}

.subtitle{
  font-size:22px;
  line-height:1.4;
  color:var(--muted);
  margin:0 0 28px;
}

.cta-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  padding:15px 24px;
  border-radius:16px;
  font-weight:700;
  font-size:16px;
  transition:.18s ease;
}

.btn-primary{
  background:var(--primary);
  color:#05203a;
}

.btn-primary:hover{
  transform:translateY(-1px);
  background:var(--primary-hover);
}

.btn-secondary{
  background:rgba(255,255,255,.08);
  color:var(--text);
  border:1px solid rgba(255,255,255,.14);
}

.btn-secondary:hover{
  background:rgba(255,255,255,.12);
}

.hero-brand{
  padding:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:520px;
}

.brand-box{
  width:100%;
  max-width:420px;
  text-align:center;
}

.brand-logo{
  width:min(100%, 340px);
  height:auto;
  display:block;
  margin:0 auto 24px;
  filter:drop-shadow(0 10px 30px rgba(0,0,0,.22));
}

.brand-fallback{
  font-size:54px;
  font-weight:800;
  margin-bottom:18px;
}

.brand-caption{
  color:var(--muted);
  font-size:18px;
  line-height:1.5;
}

.auth-wrap{
  width:100%;
  max-width:460px;
}

.auth-card{
  padding:34px;
}

.auth-header{
  text-align:center;
  margin-bottom:22px;
}

.auth-logo{
  max-width:210px;
  width:100%;
  height:auto;
  margin:0 auto 16px;
  display:block;
}

.auth-title{
  margin:0;
  font-size:34px;
  font-weight:800;
}

.auth-subtitle{
  margin:10px 0 0;
  color:var(--muted);
  font-size:16px;
}

.field{
  margin-bottom:16px;
}

.label{
  display:block;
  font-size:14px;
  color:#dfe8f8;
  margin-bottom:8px;
}

.input{
  width:100%;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:var(--text);
  padding:14px 16px;
  font-size:16px;
  outline:none;
}

.input::placeholder{
  color:#aab7d0;
}

.input:focus{
  border-color:rgba(61,184,255,.55);
  box-shadow:0 0 0 4px rgba(61,184,255,.12);
}

.msg{
  min-height:24px;
  margin-top:14px;
  text-align:center;
  font-size:14px;
  color:#ffd9d9;
}

.auth-actions{
  display:flex;
  gap:12px;
  margin-top:8px;
}

.auth-actions .btn{
  width:100%;
}

.selector-wrap{
  width:100%;
  max-width:780px;
}

.selector-card{
  padding:36px;
}

.selector-top{
  text-align:center;
  margin-bottom:26px;
}

.selector-title{
  margin:0;
  font-size:38px;
  font-weight:800;
}

.selector-subtitle{
  margin:10px 0 0;
  color:var(--muted);
  font-size:17px;
}

.selector-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.option{
  padding:24px;
  border-radius:22px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
}

.option h3{
  margin:0 0 8px;
  font-size:24px;
}

.option p{
  margin:0 0 18px;
  color:var(--muted);
  line-height:1.5;
}

.footer-note{
  margin-top:22px;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}

.top-link{
  position:fixed;
  top:18px;
  left:18px;
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:var(--text);
  font-size:14px;
  backdrop-filter:blur(12px);
}

.hidden{
  display:none !important;
}

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

  .hero-copy,
  .hero-brand{
    padding:30px;
    min-height:auto;
  }

  .title{
    font-size:42px;
  }

  .subtitle{
    font-size:18px;
  }

  .selector-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 520px){
  .page{
    padding:18px;
  }

  .hero-copy,
  .auth-card,
  .selector-card{
    padding:24px;
  }

  .title{
    font-size:34px;
  }

  .auth-title{
    font-size:28px;
  }
}
