:root{
  --bg:#f5f5f7;
  --surface:#ffffff;
  --text:#1c1c1e;
  --muted:#6b7280;
  --border:#e5e5ea;
  --accent:#0a84ff;
  --radius:16px;
  --shadow:0 2px 8px rgba(0,0,0,.06), 0 14px 40px rgba(0,0,0,.06);
}

/* ===== Layout ===== */
html, body{
  height:100%;
  background:var(--bg);
}

.login-wrapper{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px 12px;
}

.login-card{
  width:100%;
  max-width:420px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px 20px;
  color:var(--text);
}

/* ===== Logo ===== */
.login-logo{
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-image{
  width: 192px;
  height: 192px;
  border-radius: 24px;
  object-fit: contain;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-logo-image:hover{
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(10, 132, 255, 0.3);
}

/* ===== Title ===== */
.login-title{
  font-size:20px;
  font-weight:700;
  margin:6px 0 14px 0;
  color:var(--text);
  text-align: center;
}

/* ===== Form controls ===== */
.form-control{
  height:44px;
  border:1px solid var(--border);
  border-radius:12px;
  padding:0 12px;
  background:#fff;
  color:var(--text);
}
.form-control::placeholder{ color:var(--muted); }
.form-control:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(10,132,255,.18);
  outline:none;
}

/* ===== Button ===== */
.btn{
  height:44px;
  border-radius:12px;
  font-weight:700;
}
.btn-primary{
  background:var(--accent);
  border-color:var(--accent);
}
.btn-primary:hover{
  filter:brightness(.98);
}

/* ===== Alert ===== */
.alert{
  border-radius:10px;
  padding:8px 12px;
  font-size:0.95rem;
}

/* ===== Focus visible ===== */
:focus-visible{
  outline: none;
  box-shadow:0 0 0 3px rgba(10,132,255,.28);
  border-radius:12px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* ===== Mobile tweaks ===== */
@media (max-width: 480px){
  .login-wrapper{ padding:18px 10px; }
  .login-card{
    padding:20px 16px;
    border-radius:14px;
  }
  
  /* Уменьшаем логотип на мобильных */
  .login-logo-image{
    width: 128px;
    height: 128px;
    border-radius: 20px;
  }
  .login-brand{ font-size:24px; margin-bottom:8px; }
  .login-title{ font-size:18px; margin-bottom:12px; }
  .form-control{ height:46px; border-radius:12px; }
  .btn{ height:46px; border-radius:12px; }
}