@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --surface:     #ffffff;
  --border:      #ccd6ee;
  --text:        #0f1825;
  --text-muted:  #526080;
  --accent:      #2050c8;
  --accent-dark: #163da0;
  --accent-light:#dde8ff;
  --error:       #c0392b;
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.18);
  --radius-sm:   8px;
  --radius-lg:   24px;
}

html, body {
  min-height: 100dvh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(160deg, #0a2a6e 0%, #1a47b8 55%, #2050c8 100%);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

.login-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 36px 40px;
  width: 100%;
  max-width: 400px;
}

@media (max-width: 400px) {
  .login-card {
    padding: 36px 24px 32px;
    border-radius: 20px;
  }
}

/* ── Logo-Bereich ── */
.logo {
  text-align: center;
  margin-bottom: 36px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--accent-light);
  border-radius: 16px;
  margin-bottom: 16px;
}

.logo-icon svg {
  color: var(--accent);
}

.logo h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.logo-divider {
  width: 40px;
  height: 3px;
  background: var(--accent-light);
  border-radius: 2px;
  margin: 10px auto 0;
}

.logo p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ── Formular ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

input[type="text"] {
  width: 100%;
  padding: 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-family: "Courier New", monospace;
  letter-spacing: 0.14em;
  text-align: center;
  color: var(--text);
  background: #f5f8ff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.error-msg {
  font-size: 0.82rem;
  color: var(--error);
  background: #fdf0ef;
  border: 1px solid #f5c6c2;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  line-height: 1.5;
}

button[type="submit"] {
  margin-top: 6px;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(32, 80, 200, 0.35);
  letter-spacing: 0.01em;
}

button[type="submit"]:hover {
  opacity: 0.92;
  box-shadow: 0 6px 20px rgba(32, 80, 200, 0.45);
}

button[type="submit"]:active {
  opacity: 0.85;
  box-shadow: none;
}
