/* ============================================================================
   AUTH-V2.CSS - New Authentication & Onboarding Styles
   Extracted from standalone templates - Version 2.0
   Mobile-First Responsive Design
   ============================================================================ */

/* Import Inter font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================================
   CSS VARIABLES - Centralized Design System
   ============================================================================ */
:root {
  /* Cores Principais - Auth */
  --auth-primary: #065F46;
  --auth-primary-light: #047857;
  --auth-primary-lighter: #059669;
  --auth-accent: #10B981;
  
  /* Backgrounds - Auth */
  --auth-bg-main: #F0FDF4;
  --auth-bg-secondary: #ECFDF5;
  --auth-bg-card: #FFFFFF;
  
  /* Borders - Auth */
  --auth-border-light: #D1FAE5;
  --auth-border-medium: #A7F3D0;
  
  /* Text - Auth */
  --auth-text-primary: #022C23;
  --auth-text-secondary: #065F46;
  --auth-text-muted: #6B7280;
  
  /* Spacing - Auth */
  --auth-radius-sm: 8px;
  --auth-radius-md: 12px;
  --auth-radius-lg: 16px;
  --auth-radius-xl: 20px;
  
  /* Animations - Auth */
  --auth-transition-fast: 0.2s ease;
  --auth-transition-normal: 0.3s ease;
  --auth-transition-slow: 0.5s ease;
}

/* ============================================================================
   RESET AND BASE STYLES
   ============================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, var(--auth-bg-main) 0%, var(--auth-bg-secondary) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes borderDraw {
  0% {
    border-color: var(--auth-border-light);
    box-shadow: 0 0 0 0 var(--auth-primary);
  }
  50% {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 2px rgba(6, 95, 70, 0.1);
  }
  100% {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg) scale(1); 
  }
  25% { 
    transform: translateY(-10px) rotate(90deg) scale(1.05); 
  }
  50% { 
    transform: translateY(-20px) rotate(180deg) scale(1.1); 
  }
  75% { 
    transform: translateY(-10px) rotate(270deg) scale(1.05); 
  }
}

@keyframes colorPulse {
  0%, 100% { 
    opacity: 0.1;
    filter: hue-rotate(0deg) brightness(1);
  }
  25% { 
    opacity: 0.15;
    filter: hue-rotate(20deg) brightness(1.2);
  }
  50% { 
    opacity: 0.12;
    filter: hue-rotate(40deg) brightness(1.1);
  }
  75% { 
    opacity: 0.18;
    filter: hue-rotate(20deg) brightness(1.3);
  }
}

/* ============================================================================
   BACKGROUND AURAS
   ============================================================================ */
.background-aura {
  position: fixed;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.aura1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(45deg, var(--auth-primary), var(--auth-accent));
  top: -10%;
  left: -10%;
}

.aura2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, var(--auth-accent), var(--auth-primary-light));
  bottom: -10%;
  right: -10%;
  animation-delay: 3s;
}

.aura3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--auth-primary-light), var(--auth-primary));
  top: 50%;
  left: 50%;
  animation-delay: 1.5s;
}

/* ============================================================================
   MAIN CONTAINER
   ============================================================================ */
.auth-container {
  display: flex;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

/* ============================================================================
   IMAGE COLUMN
   ============================================================================ */
.auth-image-column {
  flex: 1;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-light) 50%, var(--auth-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: visible;
  z-index: 1;
  margin: 2rem;
  border-radius: var(--auth-radius-lg);
  width: 75%;
}

.auth-image-content {
  text-align: center;
  color: white;
  z-index: 3;
  position: relative;
}

.auth-image-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.auth-image-subtitle {
  font-size: 1.125rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* ============================================================================
   FORM COLUMN
   ============================================================================ */
.auth-form-column {
  flex: 1;
  padding: 3rem;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  width: 100%;
}

.auth-form-container {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--auth-radius-lg);
  padding: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================================
   LOGO
   ============================================================================ */
.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.logo-img {
  width: 3rem !important;
  height: 3rem !important;
  border-radius: 50%;
  object-fit: cover;
  transition: all var(--auth-transition-normal);
}

.auth-logo:hover .logo-img {
  transform: scale(1.05) rotate(3deg);
}

.auth-logo h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--auth-text-primary);
  margin-bottom: 0.5rem;
}

.auth-logo p {
  color: var(--auth-text-muted);
  font-size: 1.1rem;
}

/* ============================================================================
   STEP INDICATOR
   ============================================================================ */
.step-indicator {
  text-align: center;
  margin-bottom: 2rem;
  padding: 0.75rem 1.5rem;
  background: rgba(6, 95, 70, 0.1);
  border: 1px solid rgba(6, 95, 70, 0.2);
  border-radius: var(--auth-radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--auth-text-secondary);
}

/* ============================================================================
   FORM ELEMENTS
   ============================================================================ */
.auth-form {
  width: 100%;
}

.auth-form-group {
  margin-bottom: 1rem;
}

.auth-form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--auth-text-primary);
  margin-bottom: 0.5rem;
}

.auth-form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--auth-border-light);
  border-radius: var(--auth-radius-md);
  background: var(--auth-bg-card);
  color: var(--auth-text-primary);
  font-size: 1rem;
  transition: all var(--auth-transition-normal);
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
}

.auth-form-help {
  font-size: 0.8rem;
  color: var(--auth-text-muted);
  margin-top: 0.25rem;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */
.auth-button {
  width: 100%;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: var(--auth-radius-md);
  box-shadow: 0 4px 15px rgba(6, 95, 70, 0.3);
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-accent) 100%);
  cursor: pointer;
  transition: all 1.5s ease;
  transform: scale(1);
  position: relative;
  overflow: hidden;
}

.auth-button:hover {
  background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-primary-lighter) 100%);
  transform: scale(1.02) translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.auth-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: var(--auth-radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--auth-transition-normal);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--auth-text-primary);
  border: 2px solid var(--auth-border-medium);
}

.btn-secondary:hover {
  background: var(--auth-bg-card);
  border-color: var(--auth-primary);
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--auth-primary) 0%, var(--auth-primary-light) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(6, 95, 70, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--auth-primary-light) 0%, var(--auth-accent) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(6, 95, 70, 0.4);
}

.button-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.auth-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--auth-text-muted);
  font-size: 0.875rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 1023px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-image-column {
    display: none;
  }

  .auth-form-column {
    padding: 2rem 1.5rem;
  }

  .auth-form-container {
    max-width: 100%;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  .auth-form-column {
    padding: 1rem;
  }

  .auth-form-container {
    padding: 1.5rem;
  }

  .auth-logo h2 {
    font-size: 1.75rem;
  }

  .button-group {
    flex-direction: column;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }

/* ============================================================================
   FORCE ICON SIZES (Override global styles)
   ============================================================================ */
.auth-container svg {
  max-width: 2.5rem !important;
  max-height: 2.5rem !important;
}

.auth-container .input-icon,
.auth-container .logo-svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  max-width: 1.5rem !important;
  max-height: 1.5rem !important;
  min-width: 1.5rem !important;
  min-height: 1.5rem !important;
}
