:root {
  --bg: #eff4ff;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: rgba(110, 132, 173, 0.18);
  --text: #162033;
  --muted: #657089;
  --primary: #2357d8;
  --secondary: #7849ff;
  --shadow: 0 24px 54px rgba(18, 35, 70, 0.14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.login-page {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(120,73,255,.14), transparent 26%),
    radial-gradient(circle at top right, rgba(35,87,216,.10), transparent 24%),
    radial-gradient(circle at bottom left, rgba(35,87,216,.12), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 58%, #edf3ff 100%);
}
form { min-height: 100vh; }
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.login-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-panel-full {
  min-height: calc(100vh - 56px);
}
.login-card {
  width: 100%;
  max-width: 430px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.96));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  padding: 34px;
}
.login-card-clean {
  display: grid;
  gap: 26px;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.login-brand-card {
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(110,132,173,.12);
}
.login-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 7px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(110,132,173,.16);
}
.login-brand strong {
  display: block;
  font-size: 1.14rem;
  letter-spacing: -.02em;
}
.login-brand span:last-child { color: var(--muted); }
.brand-mini {
  display: block;
  font-size: .74rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.card-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(120,73,255,.10);
  color: var(--secondary);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.login-card-head {
  display: grid;
  gap: 10px;
}
.login-card-head-clean h2 {
  margin: 0;
  font-size: 1.9rem;
  letter-spacing: -.04em;
}
.login-card-head-clean p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field-group:last-of-type {
  margin-bottom: 0;
}
.field-group label {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.field-group input {
  width: 100%;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(110,132,173,.16);
  background: rgba(255,255,255,.95);
  padding: 0 16px;
  outline: none;
  font: inherit;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field-group input:focus {
  border-color: rgba(35,87,216,.42);
  box-shadow: 0 0 0 5px rgba(35,87,216,.12);
}
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.password-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #738196;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .icon-hide { display: none; }
.password-toggle.is-visible .icon-show { display: none; }
.password-toggle.is-visible .icon-hide { display: block; }
.btn-login {
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, #4a7dff 100%);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(35,87,216,.22);
}
.alert-box {
  background: rgba(253,238,238,.96);
  border: 1px solid rgba(196,59,82,.18);
  color: #a52e2e;
  border-radius: 18px;
  padding: 14px 16px;
}
@media (max-width: 680px) {
  .login-shell {
    padding: 0;
    align-items: stretch;
  }
  .login-panel,
  .login-panel-full {
    min-height: 100vh;
  }
  .login-card {
    max-width: none;
    min-height: 100vh;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 22px;
  }
}
