:root {
  --bg-gradient: linear-gradient(135deg, #1a1f25 0%, #17181f 100%);
  --form-bg: rgba(30, 35, 43, 0.95);
  --text-color: #fff;
  --text-color-muted: #9ba1a6;
  --primary-color: #2196f3;
  --primary-color-hover: #1976d2;
  --input-bg: rgba(255, 255, 255, 0.05);
  --input-border: rgba(255, 255, 255, 0.1);
  --error-color: #ff4d4f;
}

.light-theme {
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  --form-bg: rgba(255, 255, 255, 0.95);
  --text-color: #333;
  --text-color-muted: #666;
  --primary-color: #2196f3;
  --primary-color-hover: #1976d2;
  --input-bg: rgba(0, 0, 0, 0.05);
  --input-border: rgba(0, 0, 0, 0.1);
  --error-color: #ff4d4f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg-gradient);
  padding: 20px;
  transition: all 0.3s ease;
}

.smoke-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
  opacity: 0.05;
  pointer-events: none;
}

.form-container {
  width: 100%;
  max-width: 500px;
  background: var(--form-bg);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.app-name,
.extra-text {
  color: var(--text-color);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--primary-color);
  border-radius: 50%;
}

h1 {
  color: var(--text-color);
  font-size: 2rem;
  margin-bottom: 16px;
}

.login-text {
  color: var(--text-color-muted);
  margin-bottom: 32px;
}

.login-text a {
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 8px;
  transition: color 0.3s ease;
}

.login-text a:hover {
  color: var(--primary-color-hover);
}

.form-group {
  margin-bottom: 20px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input-wrapper {
  position: relative;
}

input {
  width: 100%;
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.3s ease;
}

input::placeholder {
  color: var(--text-color-muted);
}

input:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--input-bg);
}

.icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  opacity: 0.5;
}

button {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 32px;
}

button:hover {
  background: var(--primary-color-hover);
  transform: translateY(-2px);
}

button:disabled {
  background: var(--text-color-muted);
  cursor: not-allowed;
  transform: none;
}

.powered-by {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.back-to-home {
  position: absolute;
  top: 24px;
  left: 24px;
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.back-to-home:hover {
  color: var(--primary-color);
}

.theme-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--primary-color);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.theme-switch:hover {
  background: var(--primary-color-hover);
}

.error-message {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 4px;
  display: none;
}

@media (max-width: 480px) {
  .form-container {
    padding: 24px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .back-to-home,
  .theme-switch {
    top: 12px;
  }
}
/* Estilo para el label */
label {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-color-muted);
  margin-bottom: 0px;
  transition: color 0.3s ease;
}

label:hover {
  color: var(--primary-color);
}

/* Estilo para el select */
select {
  width: 100%;
  padding: 16px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  color: var(--text-color);
  font-size: 1rem;
  appearance: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px var(--primary-color);
}

/* Icono para el select (flecha) */
select::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Estilo para el contenedor del switch */
.switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 14px;
  background: var(--form-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Texto del switch */
.switch-text {
  font-size: 1rem;
  color: var(--text-color);
}

/* Estilo del switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: all 0.4s;
  border-radius: 25px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-color);
  transition: all 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(25px);
}
