.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.login-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 420px;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header h2 {
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.login-header h2::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin: 0.85rem auto 0;
  background: var(--primary);
  border-radius: 2px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.login-form .form-group label {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-form .form-group input {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: var(--surface-muted);
}

.login-form .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
  background: var(--surface);
}

.login-form .form-group input:disabled {
  background: var(--surface-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.error-message {
  background: #fef2f2;
  color: #b91c1c;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  font-size: 0.9rem;
  text-align: center;
  font-weight: 500;
}

.login-button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 0.5rem;
  font-family: inherit;
}

.login-button:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--primary-shadow);
}

.login-button:disabled {
  background: var(--border-strong);
  cursor: not-allowed;
}

.login-footer {
  margin-top: 2rem;
  text-align: center;
}

.help-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0.5rem 0;
}

.help-text code {
  background: var(--surface-muted);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--primary);
  font-weight: 600;
  border: 1px solid var(--border);
}

.warning-text {
  color: var(--accent-warm);
  background: rgba(180, 83, 9, 0.08);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: 1rem;
  border: 1px solid rgba(180, 83, 9, 0.2);
}

@media (max-width: 768px) {
  .login-box {
    padding: 2rem;
  }
}
