:root {
  --login-bg: linear-gradient(135deg, #f6f8ff 0%, #eef0ff 50%, #f9f5ff 100%);
  --login-text: #0B1B3A;
  --login-muted: #6B7280;
  --login-border: #E5E7EB;
  --login-accent: #2547E5;
  --login-accent-dark: #1b36b5;
  --login-grad: linear-gradient(135deg, #2547E5 0%, #6E4EF2 100%);
  --login-danger: #dc2626;
  --login-danger-soft: #fef2f2;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  background: var(--login-bg);
  color: var(--login-text);
  min-height: 100vh;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
}

.login {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  gap: 20px;
}

.login__card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(11, 27, 58, 0.12), 0 1px 2px rgba(11, 27, 58, 0.04);
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 400px;
}

.login__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.login__logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--login-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 700;
}
.login__name {
  font-size: 1.15rem; font-weight: 700;
}

.login__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.login__sub {
  color: var(--login-muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.login__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.login__field { display: flex; flex-direction: column; gap: 6px; }
.login__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--login-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.login__field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--login-border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--login-text);
  background: #fff;
  transition: border-color 0.12s, box-shadow 0.12s;
  -webkit-appearance: none;
}
.login__field input:focus {
  outline: none;
  border-color: var(--login-accent);
  box-shadow: 0 0 0 4px rgba(37, 71, 229, 0.12);
}

.login__error {
  background: var(--login-danger-soft);
  color: var(--login-danger);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 500;
}

.login__btn {
  margin-top: 4px;
  padding: 14px 16px;
  background: var(--login-grad);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.12s, opacity 0.12s;
  box-shadow: 0 6px 20px rgba(37, 71, 229, 0.25);
}
.login__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(37, 71, 229, 0.32); }
.login__btn:active { transform: translateY(0); }
.login__btn:disabled { opacity: 0.6; cursor: wait; }

.login__footer {
  color: var(--login-muted);
  font-size: 0.78rem;
}
