/* 
  Paleta de Cores & Estilos: ClimaBot (Base Laranja)
*/

:root {
  /* =========================================
     Cores Principais (Base Laranja)
  ========================================= */
  --color-primary: #FF6B35;         /* Laranja Vibrante */
  --color-primary-hover: #E85A27;   /* Laranja Escuro - Hover */
  --color-primary-light: rgba(255, 107, 53, 0.15); 
  
  --color-secondary: #3B82F6;       /* Azul Royal Vivo */
  --color-secondary-dark: #1D4ED8;  /* Azul Escuro */
  --color-secondary-light: rgba(59, 130, 246, 0.2); 
  
  --color-bg-main: #0F172A;         /* Slate-900 (Fundo Geral) */
  --color-bg-card: #1E293B;         /* Slate-800 (Cards/Painéis) */
  --color-text-main: #F8FAFC;       /* Slate-50 (Texto Principal) */
  --color-text-muted: #94A3B8;      /* Slate-400 (Cinza) */
  --color-border: #334155;          /* Slate-700 (Bordas) */
  --color-input-bg: #111B33;        /* Slate-950/Mixed (Fundo dos campos) */

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
  
  --radius-lg: 24px;
  --radius-md: 14px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
}

/* =========================================
   Layout Mobile-First
========================================= */
.login-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
}

/* =========================================
   Banner Esquerdo
========================================= */
.login-banner {
  flex: none;
  /* Degradê remetendo a climatização e tecnologia */
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-secondary) 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Efeito de brilho/Padrão no banner */
.login-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.25) 0%, transparent 50%);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 480px;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* O floco de neve em laranja contrastando com o fundo azul */
.logo i {
  color: var(--color-primary);
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.banner-content h1 {
  font-size: 1.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.banner-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* =========================================
   Formulário Direito
========================================= */
.login-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-card);
  padding: 40px 20px;
  position: relative;
  border-radius: 30px 30px 0 0;
  margin-top: -30px;
  box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
  z-index: 3;
}

.form-wrapper {
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-wrapper h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
  font-weight: 700;
}

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

/* Estilos de Inputs */
.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 16px;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  transition: color 0.3s ease;
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  padding: 16px 16px 16px 48px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  background-color: var(--color-input-bg);
  color: var(--color-text-main);
}

.input-with-icon input:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: var(--color-bg-main);
  box-shadow: 0 0 0 4px var(--color-primary-light);
}

/* Quando o input estiver focado, o ícone interno muda para a cor principal */
.input-with-icon input:focus ~ i {
  color: var(--color-primary);
}

.forgot-password {
  text-align: right;
  margin-top: 0.5rem;
}

.forgot-password a {
  color: var(--color-secondary-dark);
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.forgot-password a:hover {
  color: var(--color-primary);
}

/* =========================================
   Botões Principais
========================================= */
.btn-primary {
  width: 100%;
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 107, 53, 0.25);
  margin-top: 1.5rem;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 107, 53, 0.35);
}

/* Divisor Visual */
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--color-border);
}

.divider span {
  padding: 0 15px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* =========================================
   Botões de Cadastro (Usuário / Empresa)
========================================= */
.register-actions p {
  text-align: center;
  color: var(--color-text-main);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.btn-outline {
  flex: 1;
  background: rgba(255,255,255,0.03);
  border: 2px solid var(--color-border);
  color: var(--color-text-main);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-outline i {
  font-size: 1.2rem;
}

/* Hover Cadastro Empresa (Vai para Laranja) */
.btn-company:hover {
  background-color: var(--color-primary-light);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Hover Cadastro Usuário (Vai para Azul) */
.btn-user:hover {
  background-color: var(--color-secondary-light);
  border-color: var(--color-secondary);
  color: var(--color-secondary);
}

/* =========================================
   Responsividade: Tablet e Desktop (Mobile-first)
========================================= */
@media (min-width: 480px) {
  .btn-group {
    flex-direction: row;
  }
  
  .banner-content h1 {
    font-size: 2.2rem;
  }
}

@media (min-width: 900px) {
  .login-container {
    flex-direction: row;
  }
  
  .login-banner {
    flex: 1;
    padding: 40px;
    text-align: left;
  }
  
  .logo {
    justify-content: flex-start;
  }
  
  .banner-content h1 {
    font-size: 3rem;
  }
  
  .login-form-section {
    padding: 40px;
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
  }
}
