/**
 * ESTILOS DE AUTENTICAÇÃO MODERNOS - DG PRODUÇÕES
 * Adaptado das cores nativas do site para um modal moderno
 */

/* Modal Auth Moderno */
.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
  overflow-y: auto;
  padding: 1rem;
}

.auth-modal-backdrop.show {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: linear-gradient(to bottom right, rgba(9, 9, 11, 0.85), rgba(24, 24, 27, 0.95));
  border: 1px solid #3f3f46;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  animation: slideIn 0.4s ease-out;
}

.auth-modal-inner {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 500px;
}

@media (min-width: 768px) {
  .auth-modal-inner {
    grid-template-columns: 380px 1fr;
  }
}

/* Sidebar com animação de partículas */
.auth-sidebar {
  display: none;
  position: relative;
  background: linear-gradient(135deg, rgba(9, 9, 11, 0.6), rgba(24, 24, 27, 0.4));
  overflow: hidden;
  border-right: 1px solid #3f3f46;
}

@media (min-width: 768px) {
  .auth-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.auth-sidebar-animation {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1.3);
}

#authSidebarCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Logo */
.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #e7ebf3;
  text-decoration: none;
  transition: opacity 0.2s;
  font-weight: 600;
  font-size: 1.25rem;
}

.auth-logo:hover {
  opacity: 0.8;
}

.auth-logo .dg {
  color: #3aa0ff;
  font-weight: 700;
}

/* Depoimento */
/* Área principal */
.auth-main {
  position: relative;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .auth-main {
    padding: 2rem 1.5rem;
  }
}

.auth-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(63, 63, 70, 0.2);
  border: 1px solid #3f3f46;
  color: #e7ebf3;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.auth-close-btn:hover {
  background: rgba(63, 63, 70, 0.3);
  border-color: #52525b;
}

.auth-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

/* Cabeçalho */
.auth-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.auth-title {
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #e7ebf3;
  margin: 0;
}

.auth-subtitle {
  font-size: 0.938rem;
  color: #9aa6b2;
  margin: 0;
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #3f3f46;
}

.auth-tab {
  flex: 1;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9aa6b2;
  font-size: 0.938rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  margin-bottom: -1px;
}

.auth-tab:hover {
  color: #e7ebf3;
  background: rgba(58, 160, 255, 0.05);
}

.auth-tab.active {
  color: #3aa0ff;
  border-bottom-color: #3aa0ff;
}

/* Formulário */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Compact signup form - reduce spacing */
#authFormSignup {
  gap: 0.75rem;
}
#authFormSignup .auth-header {
  margin-bottom: 0.75rem;
}
#authFormSignup .auth-field {
  gap: 0.35rem;
}
#authFormSignup .auth-input {
  padding: 0.6rem 0.85rem;
  font-size: 0.875rem;
}
#authFormSignup .auth-title {
  font-size: 1.5rem;
}

.auth-form.hidden {
  display: none !important;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #e7ebf3;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid #3f3f46;
  border-radius: 10px;
  color: #e7ebf3;
  font-size: 0.938rem;
  transition: all 0.2s;
  outline: none;
}

.auth-input:focus {
  border-color: #3aa0ff;
  background: rgba(17, 23, 34, 0.7);
  box-shadow: 0 0 0 3px rgba(58, 160, 255, 0.1);
}

.auth-input::placeholder {
  color: #9aa6b2;
  opacity: 0.6;
}

.auth-input-group {
  position: relative;
}

.auth-input-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9aa6b2;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.auth-input-icon:hover {
  color: #e7ebf3;
}

.auth-input-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.auth-input-with-icon {
  padding-right: 3rem;
}

/* Links */
.auth-link {
  color: #3aa0ff;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #2f7cff;
  text-decoration: underline;
}

.auth-forgot-link {
  display: flex;
  justify-content: flex-end;
}

/* Checkbox */
.auth-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.auth-checkbox {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: #3aa0ff;
}

.auth-checkbox-label {
  font-size: 0.875rem;
  color: #e7ebf3;
  cursor: pointer;
}

/* Botões */
.auth-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  font-size: 0.938rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.auth-btn-primary {
  background: linear-gradient(135deg, #3aa0ff, #2f7cff);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(58, 160, 255, 0.3);
}

.auth-btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58, 160, 255, 0.4);
}

.auth-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.auth-btn-outline {
  background: transparent;
  border: 1px solid rgba(58, 160, 255, 0.3);
  color: #e7ebf3;
}

.auth-btn-outline:hover:not(:disabled) {
  background: rgba(58, 160, 255, 0.08);
  border-color: rgba(58, 160, 255, 0.5);
}

.auth-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Divisor */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #9aa6b2;
  font-size: 0.875rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(58, 160, 255, 0.15);
}

.auth-divider:not(:empty)::before {
  margin-right: 1rem;
}

.auth-divider:not(:empty)::after {
  margin-left: 1rem;
}

/* Alert */
.auth-alert {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  animation: slideIn 0.3s ease-out;
  margin-bottom: 1rem;
}

.auth-alert.hidden {
  display: none !important;
}

.auth-alert-error {
  background: rgba(255, 92, 122, 0.12);
  border: 1px solid rgba(255, 92, 122, 0.3);
  color: #ff5c7a;
}

.auth-alert-success {
  background: rgba(25, 255, 154, 0.12);
  border: 1px solid rgba(25, 255, 154, 0.3);
  color: #19ff9a;
}

/* Loading spinner */
.auth-spinner {
  border: 2px solid rgba(58, 160, 255, 0.3);
  border-top-color: #3aa0ff;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

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

/* Texto de rodapé */
.auth-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: #9aa6b2;
  margin-top: 1.5rem;
}

/* Password strength */
.auth-password-strength {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.auth-password-strength-bar {
  height: 0.25rem;
  flex: 1;
  background: rgba(58, 160, 255, 0.15);
  border-radius: 9999px;
  transition: background-color 0.3s;
}

.auth-password-strength-bar.active-weak {
  background: #ff5c7a;
}

.auth-password-strength-bar.active-medium {
  background: #ffe39a;
}

.auth-password-strength-bar.active-strong {
  background: #19ff9a;
}

.auth-password-hint {
  font-size: 0.75rem;
  color: #9aa6b2;
  margin-top: 0.25rem;
}

/* Mobile logo */
.auth-mobile-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .auth-mobile-logo {
    display: none;
  }
}
