/* ROOT THEME VARIABLES */
:root[data-theme="light"] {
  --bg: #f2f5f7;
  --card-bg: #ffffff;
  --text: #222;
  --text-light: #666;
  --accent-blue: #4c8bf5;
  --accent-red: #ff4d4d;
  --input-bg: #ffffff;
  --input-border: #d0d0d0;
}

:root[data-theme="dark"] {
  --bg: #0e1621;
  --card-bg: #1c2733;
  --text: #e9eef5;
  --text-light: #9bb0c3;
  --accent-blue: #5ea2ff;
  --accent-red: #ff6b6b;
  --input-bg: #18222e;
  --input-border: #334455;
}

/* GENERAL PAGE STYLE */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* THEME BUTTON */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--card-bg);
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: 0.2s;
}
.theme-toggle:hover {
  transform: scale(1.1);
}

/* CARD CONTAINER */
.container {
  background: var(--card-bg);
  padding: 40px 35px;
  width: 100%;
  max-width: 380px;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  text-align: center;
}

h1 {
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: 700;
}

/* FORM */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

label {
  text-align: left;
  font-weight: 600;
  color: var(--text-light);
}

input {
  padding: 14px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  transition: 0.2s;
}

input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(76,139,245,0.3);
  outline: none;
}

/* BUTTONS */
.btn {
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: 0.2s;
}

.btn.blue { background: var(--accent-blue); }
.btn.red { background: var(--accent-red); }

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* SMALL TEXT */
.switch-text {
  margin-top: 15px;
  font-size: 14px;
  color: var(--text-light);
}

.switch-text a {
  color: var(--accent-blue);
  font-weight: 600;
}
