:root{
  --bg:#ffffff;
  --surface:#ffffff;

  --text:#0f172a;
  --muted:#64748b;

  --border:rgba(15,23,42,0.12);
  --border2:rgba(15,23,42,0.16);

  --accent:#f4a261;
  --accent-soft:rgba(244,162,97,0.12);
  --accent-ring:rgba(244,162,97,0.28);

  --radius:16px;
  --radius-sm:12px;

  --shadow-card: 0 1px 0 rgba(15,23,42,0.04), 0 18px 40px rgba(15,23,42,0.06);

  --fs-base:14px;
  --fs-sm:13px;
  --fs-h1:22px;

  --fw-regular:400;
  --fw-medium:520;
  --fw-semibold:600;
}

*{ box-sizing:border-box; }

.login-body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-base);
  line-height: 1.5;
  font-weight: var(--fw-regular);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.login-brand-corner{
  position: fixed;
  top: 22px;
  left: 28px;
  z-index: 2;
  pointer-events: none;
}

.login-brand-logo{
  display: block;
  width: clamp(190px, 19vw, 340px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(15,23,42,0.10));
  opacity: 0.98;
}

b,strong{ font-weight: var(--fw-semibold); }

.login-wrap{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  /* bottom padding больше top -> блок визуально поднимается вверх */
  padding: 12px 16px 152px;

  gap: 10px;
}

.login-flash{
  width: min(520px, 100%);
  margin: 0;
}

.login-flash-item{
  border:1px solid var(--border2);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 10px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(15,23,42,0.04);
}

.login-flash-error{ border-color: rgba(220,38,38,0.35); }
.login-flash-ok{ border-color: rgba(34,197,94,0.35); }

.login-hero{
  width: min(520px, 100%);
  display:flex;
  justify-content:center;
  align-items:center;
  padding: 0;
  margin: 0;
}

.login-robot{
  width: min(260px, 72vw);
  max-height: 210px;
  height: auto;
  display:block;
  object-fit: contain;
}

.login-card{
  width: min(520px, 100%);
  display:grid;
  gap: 12px;
  background: var(--surface);
  border:1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.login-label{
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.7px;
  color: rgba(15,23,42,0.80);
  margin-top: 6px;
  text-transform: uppercase;
}

.login-input{
  width:100%;
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  border:1px solid var(--border2);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

.login-input:focus{
  border-color: rgba(244,162,97,0.75);
  box-shadow: 0 0 0 4px rgba(244,162,97,0.22);
}

.login-fallback-btn{
  margin-top: 10px;
  justify-self: start;
  background: var(--accent-soft);
  border: 1px solid rgba(244,162,97,0.70);
  color: var(--text);
  font-weight: var(--fw-semibold);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  box-shadow: 0 10px 22px rgba(244,162,97,0.16);
  transition: border-color .15s ease, background .15s ease, transform .05s ease, filter .15s ease;
}

.login-fallback-btn:hover{
  background: rgba(244,162,97,0.16);
  border-color: rgba(244,162,97,0.85);
  filter:none;
}

.login-fallback-btn:active{
  transform: translateY(1px);
}

@media (max-width: 720px){
  .login-brand-corner{
    top: 12px;
    left: 12px;
  }
  .login-brand-logo{
    width: clamp(150px, 42vw, 220px);
  }
}
