:root{
  --brand:#6c5ce7;
  --brand2:#4a9bff;
  --text:#1b2233;
  --muted:#7b869c;
  --card:rgba(255,255,255,.72);
  --stroke:rgba(255,255,255,.95);
  --shadow:0 18px 40px -20px rgba(38,55,110,.45);
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  padding:22px;
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  background:
    radial-gradient(1100px 650px at 12% -12%, #dbe7ff 0%, transparent 62%),
    radial-gradient(900px 600px at 102% -5%, #ffe4f2 0%, transparent 58%),
    radial-gradient(900px 700px at 45% 118%, #d9f7ef 0%, transparent 60%),
    linear-gradient(160deg,#f8faff,#eef1fa 60%,#e8ecf7);
  background-attachment:fixed;
}

/* ================= ЦЕНТРИРОВАНИЕ ================= */
.auth-wrapper{
  min-height:calc(100vh - 44px);
  display:flex;
  align-items:center;
  justify-content:center;
}

/* ================= КАРТОЧКА ================= */
.auth-card{
  display:grid;
  grid-template-columns:1fr 1fr;
  width:100%;
  max-width:1000px;
  border-radius:28px;
  overflow:hidden;
  border:1px solid var(--stroke);
  background:var(--card);
  box-shadow:var(--shadow);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

/* ================= ЛЕВАЯ ПАНЕЛЬ ================= */
.auth-side{
  padding:40px 36px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  color:#fff;
  display:flex;
  flex-direction:column;
  gap:28px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand-icon{
  width:44px;
  height:44px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,.22);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.brand-icon svg{width:24px;height:24px}
.brand-name{
  font-size:20px;
  font-weight:700;
  letter-spacing:-.2px;
  line-height:1.1;
}
.brand-sub{
  font-size:10.5px;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.8;
  margin-top:3px;
}

.side-title{
  margin:0;
  font-size:28px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.5px;
}

.side-text{
  margin:0;
  font-size:15px;
  line-height:1.5;
  opacity:.9;
}

.feature-list{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.feature-list li{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:14px;
}
.feature-list svg{
  width:18px;
  height:18px;
  opacity:.9;
  flex:none;
}

.side-footer{
  margin-top:auto;
  font-size:12px;
  opacity:.7;
}

/* ================= ПРАВАЯ ПАНЕЛЬ ================= */
.auth-main{
  padding:40px 36px;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.auth-header h2{
  margin:0 0 6px;
  font-size:24px;
  letter-spacing:-.3px;
}
.auth-header p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* ---------- Форма ---------- */
.login-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field-label{
  font-size:12px;
  font-weight:600;
  color:#4b5670;
  letter-spacing:.02em;
}

.field-control{
  display:flex;
  align-items:center;
  gap:10px;
  padding:11px 14px;
  border-radius:12px;
  background:#fff;
  border:1px solid #e3e8f4;
  transition:.2s ease;
}
.field-control:focus-within{
  border-color:#c9d4f2;
  box-shadow:0 0 0 3px rgba(108,92,231,.12);
}
.field-control svg{
  width:18px;
  height:18px;
  color:var(--muted);
  flex:none;
}
.field-control input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  font-family:inherit;
  font-size:14px;
  color:var(--text);
}
.field-control input::placeholder{color:#9aa4b8}

.form-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
}

.checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  color:#4b5670;
  cursor:pointer;
}
.checkbox input{
  width:16px;
  height:16px;
  accent-color:var(--brand);
}

.link{
  color:var(--brand);
  text-decoration:none;
  font-weight:500;
}
.link:hover{color:#4a9bff}

.btn-primary{
  width:100%;
  padding:13px;
  border:0;
  cursor:pointer;
  border-radius:14px;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  box-shadow:0 14px 24px -14px rgba(108,92,231,1);
  transition:.2s ease;
}
.btn-primary:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 28px -14px rgba(108,92,231,1);
}

/* ---------- Блок «Регистрация по запросу» ---------- */
.access-note{
  display:flex;
  gap:14px;
  padding:18px;
  border-radius:16px;
  background:rgba(255,255,255,.7);
  border:1px solid #eaeef8;
}

.access-icon{
  flex:none;
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:rgba(108,92,231,.12);
  color:var(--brand);
}
.access-icon svg{width:22px;height:22px}

.access-content h3{
  margin:0 0 4px;
  font-size:15px;
  font-weight:700;
}
.access-content p{
  margin:0 0 12px;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
}

.btn-outline{
  display:inline-block;
  padding:9px 16px;
  border-radius:10px;
  border:1px solid var(--brand);
  color:var(--brand);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  transition:.2s ease;
}
.btn-outline:hover{
  background:var(--brand);
  color:#fff;
}

/* ================= АДАПТИВ ================= */
@media (max-width:860px){
  .auth-card{
    grid-template-columns:1fr;
    max-width:560px;
  }
  .auth-side{
    padding:30px;
  }
  .auth-main{
    padding:30px;
  }
  .side-title{
    font-size:24px;
  }
}

@media (max-width:480px){
  body{padding:12px}
  .auth-wrapper{min-height:calc(100vh - 24px)}
  .auth-side,
  .auth-main{padding:24px 20px}
}