:root {
  --silver-light: #f0f0f0;
  --silver-medium: #d0d0d0;
  --silver-dark: #a0a0a0;
  --silver-shadow: #707070;

  --green-dark: #0b1f14;
  --blue-accent: #0080c0;
  --gray-deep: #2c3e50;
}

body {
  background: linear-gradient(to bottom, #000000, var(--green-dark));
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  color: var(--silver-light);
  font-family: 'Segoe UI', sans-serif;
}

.login-card {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeIn 0.8s ease-in-out;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--silver-dark);
}

.login-header {
  color: var(--silver-medium);
  padding: 8px;
  text-align: center;
  text-shadow: 1px 1px 2px var(--blue-accent);
}

.login-header h2 {
  margin: 0;
  font-weight: 600;
}

.login-form {
  padding: 24px;
}

.login-form label {
  font-weight: 600;
  color: var(--green-dark);
}

.login-form input[type="text"],
.login-form input[type="password"] {
  margin-top: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--gray-deep);
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 1);

}

.login-form .w3-check {
  margin-right: 8px;
}

button {
  width: 100%;
  padding: 12px;
  background-color: var(--gray-deep);
  color: #fff;
  border: 1px solid var(--gray-deep);
  border-radius: 8px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 0 10px var(--gray-deep);
}

button:hover {
  background-color: #FFF;
  color: var(--gray-deep);
  box-shadow: 0 0 12px #FFF;
}

.w3-panel {
  margin-top: 16px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.password-container {
  position: relative;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  width: 100%;
  padding-right: 40px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--silver-shadow);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid transparent;
  border-top: 8px solid var(--silver-dark);
  border-right: 8px solid var(--silver-dark);
  animation: spin 1s linear infinite;
  box-shadow: 0 0 18px var(--silver-medium);
}

.loader i {
  font-size: 60px;
  color: var(--silver-light);
  z-index: 1;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.div-sobreposta {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 10;
  display: flex;
  justify-content: center;
  flex-direction: column;
}