@import url("./fonts.css");

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: calc(14px * var(--font-scale));
  color: #1a2332;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(126, 184, 232, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(59, 130, 246, 0.22), transparent 50%),
    linear-gradient(160deg, #1a2332 0%, #2c3544 45%, #1e293b 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-page {
  width: 100%;
  max-width: 420px;
}

.login-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 36px 32px 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-brand .logo-icon {
  width: 40px;
  height: 40px;
  border: 2px solid #3b82f6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.login-brand .logo-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #3b82f6;
  border-radius: 2px;
}

.login-brand h1 {
  font-size: calc(20px * var(--font-scale));
  font-weight: 600;
  color: #1a2332;
  line-height: 1.2;
}

.login-brand p {
  margin-top: 4px;
  font-size: calc(13px * var(--font-scale));
  color: #6b7280;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field span {
  font-size: calc(13px * var(--font-scale));
  color: #4b5563;
  font-weight: 500;
}

.field input {
  height: 42px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: calc(14px * var(--font-scale));
  color: #1a2332;
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.login-error {
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  color: #b91c1c;
  font-size: calc(13px * var(--font-scale));
}

.login-btn {
  height: 44px;
  margin-top: 4px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: calc(15px * var(--font-scale));
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.login-btn:hover:not(:disabled) {
  background: #2563eb;
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.login-hint {
  margin-top: 18px;
  text-align: center;
  font-size: calc(12px * var(--font-scale));
  color: #9ca3af;
}
