/**
 * Design minimalista e moderno para a página de login da ExNova
 * Inspirado em interfaces modernas com gradientes suaves e visual clean
 */

:root {
  --primary-color: #2c578a;
  --primary-light: rgba(44, 87, 138, 0.1);
  --primary-gradient: linear-gradient(135deg, #2c578a, #3a6fa8);
  --bg-gradient: linear-gradient(135deg, #e8f0fb, #d1e3f6);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --text-color: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --border-radius: 16px;
  --card-radius: 24px;
  --input-radius: 12px;
  --button-radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset básico */
body, html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100vh;
  font-family: 'Inter', sans-serif;
  background: #f0f5fc;
  overflow: hidden;
}

/* Container principal com gradiente suave */
.login-container {
  display: flex;
  width: 100%;
  height: 100vh;
  background: var(--bg-gradient);
  position: relative;
  overflow: hidden;
}

/* Card principal com bordas arredondadas */
.main-card {
  width: 90%;
  max-width: 1200px;
  height: 85vh;
  margin: auto;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Lado esquerdo - Conteúdo de marketing */
.content-side {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #e8f0fb, #d1e3f6);
}

.brand-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 20px;
}

.brand-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 80%;
}

/* Lado direito - Formulário de login */
.form-side {
  width: 450px;
  background: var(--white);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.03);
  position: relative;
  z-index: 2;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 10px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Feedback de formulário */
.form-feedback {
  margin-bottom: 25px;
}

.error-message {
  color: #e74c3c;
  font-size: 0.85rem;
  background: rgba(231, 76, 60, 0.1);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.success-message {
  color: #2ecc71;
  font-size: 0.85rem;
  background: rgba(46, 204, 113, 0.1);
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 15px;
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(44, 87, 138, 0.3);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Campos de formulário */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  height: 50px;
  background: #f5f7fa;
  border: 1px solid #e1e5eb;
  border-radius: var(--input-radius);
  padding: 0 15px;
  font-size: 0.95rem;
  color: var(--text-color);
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-light);
  outline: none;
}

.password-field {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
}

.password-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 6px;
}

/* Checkbox personalizado */
.form-check {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--primary-color);
}

.form-check-label {
  font-size: 0.85rem;
  color: var(--text-light);
}

.form-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.form-link:hover {
  text-decoration: underline;
}

/* Opções do formulário */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

/* Botões */
.btn {
  height: 50px;
  border-radius: var(--button-radius);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(44, 87, 138, 0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--text-color);
  border: 1px solid #e1e5eb;
}

.btn-outline:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Separador */
.divider {
  display: flex;
  align-items: center;
  margin: 25px 0;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: #e1e5eb;
}

.divider-text {
  padding: 0 15px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Botões de login social */
.social-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-btn {
  flex: 1;
}

.social-btn i {
  margin-right: 10px;
}

/* Rodapé do formulário */
.form-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Elementos de background */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  background: var(--primary-color);
}

/* Métricas */
.metrics-container {
  display: flex;
  margin-top: 40px;
  gap: 30px;
}

.metric-item {
  background: rgba(255, 255, 255, 0.7);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.metric-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
}

.shape-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 10%;
}

/* Efeitos sutis de hover */
.form-control:hover {
  background: #f8f9fc;
}

/* Responsividade */
@media (max-width: 992px) {
  .main-card {
    flex-direction: column;
    height: auto;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .content-side {
    padding: 40px;
  }
  
  .form-side {
    width: 100%;
    padding: 40px;
  }
  
  .brand-subtitle {
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  .main-card {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border-radius: 0;
    max-height: none;
    margin: 0;
    box-shadow: none;
    justify-content: center;
  }
  
  .content-side {
    padding: 20px;
    text-align: center;
  }
  
  .form-side {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .form-header {
    text-align: center;
    width: 100%;
  }
  
  .tabs-container {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .form {
    width: 100%;
  }
  
  .social-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .form-footer {
    width: 100%;
    text-align: center;
  }
}

/* Animações sutis */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-side {
  animation: fadeIn 0.6s ease-out;
}

.form-group {
  animation: fadeIn 0.6s ease-out;
  animation-fill-mode: both;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

/* Efeito de flutuação suave no card */
.main-card {
  transition: transform 0.3s ease;
}

.main-card:hover {
  transform: translateY(-5px);
}
