:root {
  --primary-color: #0056ff;
  --primary-light: #3385ff;
  --primary-dark: #003db8;
  --accent-color: #00ffaa;
  --accent-dark: #00cc88;
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --gradient-1: linear-gradient(135deg, #0d6efd 0%, #00b4d8 100%);
  --gradient-2: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --card-bg: rgba(255, 255, 255, 0.15);
}

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

body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 255, 170, 0.3) 0%, transparent 40%),
    radial-gradient(circle at bottom right, rgba(0, 162, 255, 0.5) 0%, transparent 50%),
    var(--gradient-1);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

.main-container {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 40px 5%;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  gap: 50px;
}

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  max-width: 600px;
}

.login-section {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

/* Background floating elements to simulate the dynamic vibe */
.main-container::before, .main-container::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  z-index: -1;
  animation: float 10s ease-in-out infinite;
}

.main-container::before {
  top: -100px;
  left: -100px;
}

.main-container::after {
  bottom: -150px;
  right: -50px;
  animation-duration: 15s;
  animation-delay: 2s;
  background: rgba(0, 255, 170, 0.05);
}

.top-brand {
  position: absolute;
  top: 30px;
  left: 5%;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-logo {
  height: 60px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text a {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.hero-mockup {
  width: 100%;
  max-width: 500px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float-logo 6s ease-in-out infinite;
  border-radius: 20px;
}

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

/* Glassmorphism Card */
.login-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 3rem 2.5rem;
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px rgba(0, 0, 0, 0.2);
}

.app-icon {
  display: none; /* Hide default shield icon to focus on branding */
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
  text-align: center;
}

.login-subtitle {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.form-label {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.form-control {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 16px 18px;
  border-radius: 14px;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.form-control:focus {
  background: rgba(255, 255, 255, 0.25);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  color: #ffffff;
  outline: none;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.btn-login {
  background: #ffffff;
  color: var(--primary-color);
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  margin-top: 20px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-login:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
  color: var(--primary-dark);
}

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

.notificacion_login_supercias {
  text-align: center;
  margin-top: 15px;
  font-weight: 600;
  border-radius: 8px;
}

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

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(10deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-logo {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.login-card {
  animation: fadeInUp 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo-container {
  animation: fadeInUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Responsive Design */
@media (max-width: 900px) {
  .main-container {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .top-brand {
    position: relative;
    top: 0;
    left: 0;
    justify-content: center;
    margin-top: 20px;
    text-align: center;
  }

  .brand-text {
    align-items: center;
  }

  .hero-section {

  .hero-mockup {
    max-width: 300px;
  }
}

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

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

  .logo-img {
    height: 70px;
  }

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

  .btn-login {
    padding: 14px;
    font-size: 1.05rem;
  }
}
