:root{
  --bg-main:#05070d;
  --bg-secondary:#0b1220;
  --panel-bg:rgba(10, 18, 34, 0.82);
  --panel-border:rgba(110, 169, 255, 0.16);
  --text-main:#f5f7fb;
  --text-soft:#aeb8c8;
  --text-muted:#7f8ba3;
  --inter-blue:#0f7bff;
  --inter-cyan:#39c6ff;
  --shadow-main:0 20px 60px rgba(0, 0, 0, 0.45);
  --radius-xl:30px;
  --radius-lg:24px;
  --radius-md:16px;
  --transition:0.3s ease;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:'Inter', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15,123,255,0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(57,198,255,0.12), transparent 24%),
    linear-gradient(135deg, #02040a 0%, #07101f 45%, #03060d 100%);
  color:var(--text-main);
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

.page-bg{
  position:fixed;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size:40px 40px;
  mask-image:linear-gradient(to bottom, rgba(0,0,0,0.95), rgba(0,0,0,0.45));
  pointer-events:none;
  z-index:0;
}

a{
  text-decoration:none;
  color:inherit;
}

button,
input,
select{
  font:inherit;
}

img{
  display:block;
  max-width:100%;
}

/* HEADER */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter:blur(18px);
  background:rgba(3, 7, 16, 0.78);
  border-bottom:1px solid rgba(255,255,255,0.06);
}

.nav-container{
  width:min(1200px, calc(100% - 40px));
  margin:0 auto;
  min-height:80px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:0.24em;
  color:#ffffff;
  white-space:nowrap;
}

.nav-menu{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.nav-menu a{
  padding:10px 16px;
  border-radius:999px;
  color:var(--text-soft);
  font-weight:600;
  transition:var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active-link{
  color:#fff;
  background:rgba(15,123,255,0.15);
  box-shadow:inset 0 0 0 1px rgba(57,198,255,0.16);
}

/* MAIN */
.auth-main{
  position:relative;
  z-index:1;
  width:min(1280px, calc(100% - 40px));
  margin:0 auto;
  padding:32px 0 70px;
}

.auth-hero{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.08);
  border-radius:32px;
  min-height:calc(100vh - 150px);
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    linear-gradient(135deg, rgba(0, 10, 30, 0.72), rgba(15, 123, 255, 0.12)),
    url('https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  box-shadow:var(--shadow-main);
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(1,4,10,0.50), rgba(1,4,10,0.84)),
    linear-gradient(to right, rgba(0,0,0,0.35), rgba(15,123,255,0.08));
}

.auth-wrapper{
  position:relative;
  z-index:2;
  width:min(1180px, 92%);
  display:grid;
  grid-template-columns:minmax(0, 1.05fr) minmax(380px, 520px);
  gap:40px;
  align-items:center;
  padding:48px 0;
}

.hero-copy{
  max-width:620px;
}

.hero-kicker{
  font-size:0.9rem;
  text-transform:uppercase;
  letter-spacing:0.28em;
  color:var(--inter-cyan);
  margin-bottom:14px;
  font-weight:700;
}

.hero-copy h1{
  font-size:clamp(2.4rem, 6vw, 4.6rem);
  font-weight:800;
  line-height:1.02;
  letter-spacing:0.03em;
  margin-bottom:18px;
  text-shadow:0 6px 30px rgba(0,0,0,0.45);
}

.hero-subtitle{
  max-width:560px;
  font-size:1.05rem;
  line-height:1.8;
  color:var(--text-soft);
}

.auth-card{
  background:var(--panel-bg);
  border:1px solid var(--panel-border);
  border-radius:var(--radius-xl);
  padding:32px;
  backdrop-filter:blur(18px);
  box-shadow:var(--shadow-main);
}

.logo-center{
  width:108px;
  height:108px;
  margin:0 auto 22px;
  border-radius:50%;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.14);
  backdrop-filter:blur(12px);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 0 0 8px rgba(15,123,255,0.08),
    0 18px 50px rgba(0,0,0,0.35);
}

.logo-center img{
    width:100%;
    height:100%;
  object-fit:contain;
}

.auth-card-header{
  text-align:center;
  margin-bottom:24px;
}

.section-label{
  color:var(--inter-cyan);
  text-transform:uppercase;
  letter-spacing:0.18em;
  font-size:0.78rem;
  font-weight:700;
  margin-bottom:8px;
}

.auth-card-header h2{
  font-size:2rem;
  font-weight:800;
  margin-bottom:10px;
}

.auth-description{
  color:var(--text-soft);
  line-height:1.6;
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:18px;
}

.form-group{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.form-group.full-width{
  grid-column:1 / -1;
}

.form-group label{
  color:var(--text-soft);
  font-weight:600;
  font-size:0.95rem;
}

.form-group input,
.form-group select{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.08);
  background:rgba(255,255,255,0.05);
  color:var(--text-main);
  outline:none;
  transition:var(--transition);
}

.form-group input::placeholder{
  color:var(--text-muted);
}

.form-group input:focus,
.form-group select:focus{
  border-color:rgba(57,198,255,0.5);
  box-shadow:0 0 0 4px rgba(57,198,255,0.12);
}

.btn{
  border:none;
  outline:none;
  cursor:pointer;
  border-radius:999px;
  padding:14px 22px;
  font-weight:700;
  letter-spacing:0.01em;
  transition:transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover{
  transform:translateY(-2px);
}

.btn-primary{
  color:#fff;
  background:linear-gradient(135deg, var(--inter-blue), var(--inter-cyan));
  box-shadow:0 10px 24px rgba(15,123,255,0.28);
}

.btn-primary:hover{
  box-shadow:0 14px 30px rgba(15,123,255,0.38);
}

.btn-full{
  width:100%;
  margin-top:2px;
}

.auth-footer{
  margin-top:22px;
  text-align:center;
  color:var(--text-soft);
}

.auth-footer p{
  margin-bottom:8px;
}

.auth-footer a{
  color:var(--inter-cyan);
  font-weight:700;
}

.auth-footer a:hover{
  text-decoration:underline;
}

/* RESPONSIVE */
@media (max-width: 1024px){
  .auth-wrapper{
    grid-template-columns:1fr;
    gap:28px;
  }

  .hero-copy{
    max-width:100%;
    text-align:center;
  }

  .hero-subtitle{
    margin:0 auto;
  }
}

@media (max-width: 820px){
  .auth-main{
    width:min(100% - 24px, 100%);
    padding:20px 0 50px;
  }

  .auth-hero{
    min-height:auto;
    border-radius:24px;
  }

  .auth-wrapper{
    width:min(100%, 94%);
    padding:32px 0;
  }

  .auth-card{
    padding:24px;
    border-radius:24px;
  }

  .form-grid{
    grid-template-columns:1fr;
  }

  .logo-center{
    width:96px;
    height:96px;
  }

  .logo-center img{
    width:100%;
    height:100%;
  }
}

@media (max-width: 560px){
  .nav-container{
    flex-wrap:wrap;
    justify-content:center;
    padding:16px 0;
  }

  .brand{
    font-size:0.92rem;
    letter-spacing:0.16em;
  }

  .nav-menu{
    justify-content:center;
  }

  .nav-menu a{
    padding:9px 12px;
    font-size:0.95rem;
  }

  .hero-copy h1{
    line-height:1.08;
  }

  .auth-card-header h2{
    font-size:1.6rem;
  }
}