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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f2f3f5;
  color: #1a1a1a;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 20px;
}

.login-container {
  background-color: #fff;
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1 {
  font-size: 28px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 15px;
  color: #555;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

input {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  font-size: 14px;
}

input:focus {
  border-color: #3366cc;
  outline: none;
  background-color: #eef4ff;
}

button {
  padding: 12px;
  background: linear-gradient(to right, #4f73ff, #2c50d6);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: linear-gradient(to right, #3e5ed6, #223fa1);
  transform: scale(1.02);
}

button:focus {
  outline: 2px solid #254d99;
  outline-offset: 2px;
}

.cadastro-texto {
  margin-top: 24px;
  font-size: 14px;
  color: #444;
}

.cadastro-texto a {
  color: #3366cc;
  font-weight: 600;
  text-decoration: none;
}

.cadastro-texto a:hover {
  text-decoration: underline;
}

#modo-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  background-color: #3366cc;
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 18px;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

#modo-btn:hover {
  background-color: #254d99;
  transform: scale(1.1);
}


body.dark-mode {
  background-color: #121212;
  color: #e1e1e1;
}

body.dark-mode .login-container {
  background-color: #1e1e1e;
  color: #f0f0f0;
}

body.dark-mode input {
  background-color: #2c2c2c;
  color: #f0f0f0;
  border: 1px solid #555;
}

body.dark-mode input::placeholder {
  color: #aaa;
}

body.dark-mode button {
  background: linear-gradient(to right, #5588ff, #2a4fcf);
}

body.dark-mode button:hover {
  background: linear-gradient(to right, #406ce0, #254d99);
}

body.dark-mode .cadastro-texto a {
  color: #88aaff;
}

body.dark-mode label,
body.dark-mode .subtitle,
body.dark-mode h1 {
  color: #f0f0f0;
}
