:root {
  --primary-color: #0a1e3f;
  --secondary-color: #2d7d9a;
  --accent-color: #4ab8b8;
  --text-light: #ffffff;
  --text-dark: #333333;
  --input-bg: rgba(255, 255, 255, 0.1);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Poppins', 'Arial', sans-serif;
  position: relative;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(10, 30, 63, 0.8), rgba(10, 30, 63, 0.9)), 
              url('../img/img.jpg') no-repeat center center / cover;
  z-index: -2;
}

.container {
  display: flex;
  height: 100vh;
  width: 100%;
  position: relative;
  z-index: 1;
}

.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  padding: 2rem;
  background: rgba(10, 30, 63, 0.7);
  backdrop-filter: blur(5px);
}

.brand-container {
  text-align: center;
  margin-bottom: 3rem;
}

.logo {
  width: 180px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.left-panel h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.slogan {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 300;
}

.features {
  margin-top: 3rem;
  width: 100%;
  max-width: 400px;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.feature-item i {
  font-size: 1.2rem;
  margin-right: 1rem;
  color: var(--accent-color);
}

.right-panel {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.login-box {
  background-color: rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 500px;
  border-radius: 20px;
  padding: 3rem;
  color: var(--text-dark);
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease;
}

.login-box:hover {
  transform: translateY(-5px);
}

.login-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.login-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.login-header p {
  font-size: 0.9rem;
  color: #666;
}

.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #777;
}

.input-group .toggle-password {
  left: auto;
  right: 15px;
  cursor: pointer;
}

.login-box input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #f9f9f9;
}

.login-box input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(74, 184, 184, 0.2);
  outline: none;
  background-color: #fff;
}

.forgot-password {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: var(--primary-color);
}

button {
  cursor: pointer;
  transition: all 0.3s ease;
}

#submitBtn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#submitBtn:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  box-shadow: 0 5px 15px rgba(42, 139, 173, 0.4);
}

.button-text {
  transition: all 0.3s ease;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  position: absolute;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.spinner.active {
  opacity: 1;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #999;
  font-size: 0.9rem;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}

.divider::before {
  margin-right: 1rem;
}

.divider::after {
  margin-left: 1rem;
}

.social-login {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background-color: white;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-login:hover {
  background-color: #f5f5f5;
}

.social-login i {
  font-size: 1.1rem;
}

.google {
  color: #db4437;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsivo */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .left-panel {
    padding: 1.5rem;
    text-align: center;
  }
  
  .logo {
    width: 120px;
  }
  
  .login-box {
    padding: 2rem;
  }
}
@media (max-width: 480px) {
  .container {
    flex-direction: column;
  }

  .left-panel {
    padding: 1rem;
  }

  .brand-container h1 {
    font-size: 1.6rem;
  }

  .slogan {
    font-size: 0.85rem;
  }

  .features {
    margin-top: 2rem;
    max-width: 100%;
  }

  .feature-item {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .feature-item i {
    font-size: 1rem;
    margin-right: 0.7rem;
  }

  .right-panel {
    padding: 1rem;
  }

  .login-box {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .login-header h2 {
    font-size: 1.5rem;
  }

  .login-header p {
    font-size: 0.85rem;
  }

  .input-group input {
    padding: 12px 12px 12px 40px;
    font-size: 0.95rem;
  }

  #submitBtn {
    padding: 12px;
    font-size: 0.95rem;
  }

  .forgot-password {
    font-size: 0.8rem;
  }
}
