/* 
===========================================
🔐 ZAP EMPRESARIAL - AUTH PAGES STYLES
===========================================
Novo design das páginas de login e cadastro
*/

/* === RESET COMPLETO === */
html, body {
  margin: 0;
  padding: 0;
  border: none;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

/* === RESET E BASE === */
.auth-page {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  font-family: 'Inter', sans-serif;
  background: #0a1628;
  overflow: hidden;
}

/* === LAYOUT SPLIT SCREEN === */
.auth-left {
  width: 35%;
  min-width: 360px;
  max-width: 420px;
  height: 100vh;
  max-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2.5rem;
  position: relative;
  z-index: 10;
  overflow-y: auto;
  border: none;
  box-shadow: none;
}

.auth-right {
  flex: 1;
  height: 100vh;
  background-image: url('../login-background.webp');
  background-size: cover;
  background-position: top right;
  background-repeat: no-repeat;
  border: none;
  outline: none;
}

/* === LOGO E HEADER === */
.auth-logo-container {
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-logo {
  display: inline-block;
  text-decoration: none;
}

.auth-logo-img {
  height: 60px;
  width: auto;
}

/* === TÍTULO === */
.auth-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* === FORMULÁRIO === */
.auth-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.auth-form-group {
  margin-bottom: 0.875rem;
}

.auth-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

.auth-label i {
  color: #6b7280;
  font-size: 1rem;
}

.auth-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #1e293b;
  background: #F1F5F8;
  transition: all 0.2s ease;
}

.auth-input::placeholder {
  color: #9ca3af;
}

.auth-input:focus {
  outline: none;
  border-color: #1174DA;
  box-shadow: 0 0 0 3px rgba(17, 116, 218, 0.1);
}

/* Input com ícone de visualização de senha */
.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper .auth-input {
  padding-right: 2.5rem;
}

.auth-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s;
}

.auth-toggle-password:hover {
  color: #6b7280;
}

/* Inputs de telefone em grid */
.auth-phone-grid {
  display: grid;
  grid-template-columns: 60px 70px 1fr;
  gap: 0.75rem;
}

.auth-phone-grid .auth-input {
  text-align: center;
}

.auth-phone-grid .auth-input:last-child {
  text-align: left;
}

/* === CHECKBOX LEMBRAR === */
.auth-remember-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.auth-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  cursor: pointer;
}

.auth-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #1174DA;
}

.auth-forgot-link {
  color: #1174DA;
  text-decoration: none;
  font-size: 0.875rem;
}

.auth-forgot-link:hover {
  text-decoration: underline;
}

/* === CHECKBOX DE TERMOS === */
.auth-terms-checkbox {
  margin-bottom: 1rem;
}

.auth-terms-checkbox .auth-checkbox-label {
  font-size: 0.75rem;
  line-height: 1.4;
}

.auth-terms-checkbox .auth-checkbox-label span {
  color: #6b7280;
}

.auth-terms-checkbox .auth-checkbox-label a {
  color: #1174DA;
  text-decoration: underline;
}

.auth-terms-checkbox .auth-checkbox-label a:hover {
  text-decoration: none;
}

/* === BOTÃO PRINCIPAL === */
.auth-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #1174DA 0%, #0d5bab 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.auth-submit-btn:hover {
  background: linear-gradient(135deg, #0d5bab 0%, #094a8d 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 116, 218, 0.3);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* === LINK DE ALTERNÂNCIA === */
.auth-switch-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.auth-switch-text a {
  color: #1174DA;
  text-decoration: underline;
  font-weight: 500;
}

.auth-switch-text a:hover {
  text-decoration: none;
}

/* === FOOTER === */
.auth-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid #f3f4f6;
}

.auth-footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}

.auth-footer-links a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-footer-links a:hover {
  color: #1174DA;
}

/* === LADO DIREITO - CONTEÚDO === */
.auth-right-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
}

.auth-right-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.auth-right-slogan {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 400;
}

.auth-right-slogan strong {
  color: #f97316;
  font-weight: 600;
}

/* === FEEDBACK === */
.auth-feedback {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-feedback.show {
  display: block;
}

.auth-feedback.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-feedback.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

/* === RESPONSIVO === */
@media (max-width: 1024px) {
  .auth-left {
    width: 50%;
    min-width: 350px;
  }
  
  .auth-right-logo {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .auth-page {
    flex-direction: column;
  }
  
  .auth-left {
    width: 100%;
    min-width: unset;
    max-width: unset;
    min-height: 100vh;
    padding: 2rem 1.5rem;
  }
  
  .auth-right {
    display: none;
  }
  
  .auth-phone-grid {
    grid-template-columns: 55px 60px 1fr;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .auth-left {
    padding: 1.5rem 1rem;
  }
  
  .auth-title {
    font-size: 1.25rem;
  }
  
  .auth-footer-links {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-form {
  animation: fadeIn 0.4s ease-out;
}

/* === ÍCONES DE INPUT (usando Remix Icons) === */
.auth-label .ri-mail-line,
.auth-label .ri-lock-password-line,
.auth-label .ri-user-line,
.auth-label .ri-building-line,
.auth-label .ri-phone-line {
  color: #1174DA;
}

/* === ANIMAÇÃO SPIN === */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}
