:root {
  --primary-color: #263238;
  --primary-light: #4f5b62;
  --primary-dark: #000a12;
  --accent-color: #00bcd4;
  --accent-dark: #008ba3;
  --text-light: #eceff1;
  --text-muted: #b0bec5;
  --gradient-1: linear-gradient(135deg, #263238 0%, #37474f 100%);
  --gradient-2: linear-gradient(135deg, #00bcd4 0%, #008ba3 100%);
  --card-bg: rgba(255, 255, 255, 0.05);
}

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

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 20% 80%, rgba(0, 188, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(38, 50, 56, 0.3) 0%, transparent 50%),
    var(--gradient-1),
    url('/img/fondo.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  display: flex;
  flex-direction: column;
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

.logo-container {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0 20px;
}

.logo-img {
  height: 80px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 400;
}

.login-container {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card {
  background: rgba(38, 50, 56, 0.95);
  backdrop-filter: blur(15px);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-2);
}

.app-icon {
  font-size: 3.5rem;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  text-align: center;
  display: block;
}

.app-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.app-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1rem;
}

.form-label {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-control {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  padding: 14px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 188, 212, 0.25);
  color: var(--text-light);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.btn-login {
  background: var(--gradient-2);
  border: none;
  color: white;
  padding: 14px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
  width: 100%;
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 188, 212, 0.6);
}

.btn-login:active {
  transform: translateY(-1px);
}

.login-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 1.5rem;
}

.login-links a {
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  padding: 8px 0;
  border-radius: 8px;
}

.login-links a:hover {
  color: var(--text-light);
  background: rgba(0, 188, 212, 0.1);
  text-decoration: none;
}

.notificacion_login_usuario {
  text-align: center;
  margin: 15px 0;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  width: 100%;
}

.alert-success {
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.3);
  color: #4caf50;
}

.alert-error {
  background: rgba(244, 67, 54, 0.2);
  border: 1px solid rgba(244, 67, 54, 0.3);
  color: #f44336;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: fadeInUp 0.6s ease-out;
}

.logo-container {
  animation: fadeInUp 0.8s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-container {
    padding: 15px;
    justify-content: flex-start;
    padding-top: 40px;
  }

  .logo-container {
    margin-bottom: 1.5rem;
  }

  .logo-img {
    height: 60px;
  }

  .logo-text {
    font-size: 2rem;
  }

  .login-container {
    max-width: 100%;
  }

  .login-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .app-icon {
    font-size: 3rem;
  }

  .app-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.5rem;
  }

  .logo-text {
    font-size: 1.8rem;
  }

  .logo-img {
    height: 50px;
  }

  .app-icon {
    font-size: 2.5rem;
  }

  .app-title {
    font-size: 1.4rem;
  }

  .form-control {
    padding: 12px 14px;
  }

  .btn-login {
    padding: 12px;
    font-size: 1rem;
  }
}
