:root {
  --bg: #ffffff;
  --text: #000000;
  --accent: #11445a;
  --box-bg: #f5f5f5;
}

[data-theme="dark"] {
  --bg: #121212;
  --text: #f5f5f5;
  --accent: #1ecbe1;
  --box-bg: #1e1e1e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  transition: background 0.3s, color 0.3s;
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 2em;
}

.form-box {
  background: var(--box-bg);
  padding: 2em;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
  text-align: center;
  margin-bottom: 1em;
}

form {
  display: flex;
  flex-direction: column;
}

input, select {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

label {
  margin-top: 10px;
  font-weight: bold;
}

button {
  padding: 10px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 10px;
}

.switch-text {
  text-align: center;
  margin-top: 1em;
}

.switch-text a {
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}

.theme-switch {
  position: absolute;
  top: 10px;
  right: 10px;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  color: var(--accent);
}

.message {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9em;
  min-height: 18px;
}

.message.success {
  color: green;
}

.message.error {
  color: red;
}
