:root {
  --primary: #04EFD9;
  --primary-dark: #03c9b5;
  --background: #111418;
  --card-bg: #1a1f24;
  --text-light: #f8f9fa;
  --text-muted: #adb5bd;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  background: linear-gradient(145deg, #0f1317, #151a20);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-light);
  padding: 1rem;
}

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

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-container {
  display: flex;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
  border-radius: 16px; 
  overflow: hidden;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-left {
  flex: 1;
  background: linear-gradient(135deg, rgba(4, 239, 217, 0.1), rgba(3, 201, 181, 0.2));
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(4, 239, 217, 0.05) 0%, transparent 70%);
  z-index: 1;
  animation: rotation 60s linear infinite; 
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-container {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 25px rgba(4, 239, 217, 0.4);
  background: rgba(10, 14, 18, 0.7);
  border: 2px solid rgba(4, 239, 217, 0.3);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.brand-name span {
  color: var(--primary);
}

.brand-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.features {
  text-align: left;
  max-width: 350px;
  animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.feature {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-icon {
  background: rgba(4, 239, 217, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  flex-shrink: 0;
  color: var(--primary);
  font-size: 1.1rem;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.login-right {
  flex: 1;
  background: var(--card-bg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-left: 1px solid rgba(255,255,255,0.05);
  animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.login-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, var(--primary), #fff);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-group {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  background: rgba(10, 14, 18, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--text-light);
  font-size: 1rem;
}

.form-control:focus {
  border-color: var(--primary);
  background: rgba(10, 14, 18, 0.9);
  box-shadow: 0 0 0 4px rgba(4, 239, 217, 0.15);
  outline: none;
  transform: translateY(-1px);
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0.8;
}

.btn-login {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  border: none;
  padding: 1rem;
  font-weight: 600;
  font-size: 1rem;
  color: #000;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(4, 239, 217, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 239, 217, 0.4);
}

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

.forgot-password {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.forgot-password a {
  color: var(--primary);
  text-decoration: none;
  position: relative;
}

.forgot-password a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.forgot-password a:hover::after {
    width: 100%;
}

.alert {
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: popIn 0.3s ease-out;
}

.alert-danger {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
}

.floating-bg {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 239, 217, 0.1) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.bg-1 {
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  animation: float 6s ease-in-out infinite;
}

.bg-2 {
  bottom: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  animation: float 8s ease-in-out infinite reverse;
}

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

/* Responsividade */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    max-width: 500px;
  }
  
  .login-left {
    padding: 2rem 1.5rem;
  }
  
  .login-right {
    padding: 2rem 1.5rem;
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  
  .logo {
    width: 80px;
    height: 80px;
  }
  
  .brand-name {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .login-container {
    box-shadow: none;
    border-radius: 0;
  }
  
  body {
    padding: 1rem; /* Adicionado padding para respiro */
    align-items: center; /* Centraliza o conteúdo verticalmente */
  }
  
  .floating-bg {
    display: none;
  }
  
  .login-left, .login-right {
    padding: 2rem 1.25rem;
  }
  
  .features {
    display: none;
  }
}