:root {
  --accent: #2a95b0;
  --font: "Segoe UI", Tahoma, Arial, sans-serif;
  --bg-body: #ece9d8;
  --text-main: #222;
  --card-bg: #fafafa6e;
  --input-bg: #ffffff8c;
  --input-border: #fcfcfc;
}

[data-theme="dark"] {
  --accent: #4c8bf5;
  --bg-body: #16181d;
  --text-main: #e6edf3;
  --card-bg: #21252b;
  --input-bg: #1b1e23;
  --input-border: #444b54;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-body);
}

.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #102752, #09244b);
}

[data-theme="dark"] .login-body {
  background: linear-gradient(180deg, #18263e, #0c1524);
}

.login-card {
  background: var(--card-bg);
  color: var(--text-main);
  padding: 32px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  width: 300px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 20px;
  text-align: center;
}

.login-card label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 4px;
}

.login-card input {
  padding: 8px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  border-radius: 3px;
  font-size: 14px;
}

.login-card button {
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
}

.login-card button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.error-text {
  color: #b00020;
  font-size: 12px;
}

.security-banner {
  background: #fff3cd;
  border-left: 5px solid #ffc107;
  border-bottom: 1px solid #ffeeba;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #856404;
}

[data-theme="dark"] .security-banner {
  background: #2b2104;
  border-left: 5px solid #eab308;
  border-bottom: 1px solid #5a4508;
  color: #fef08a;
}

.security-banner-content {
  flex: 1;
}

.security-banner-content strong {
  display: block;
  margin-bottom: 2px;
  color: #664d03;
}

[data-theme="dark"] .security-banner-content strong {
  color: #fef9c3;
}