/* Auth CSS - Minimalist White Theme - Matching Landing Page */

/* Root Variables - Minimalist Theme */
:root {
  --primary-black: #000000;
  --primary-gray-100: #f5f5f5;
  --primary-gray-200: #e5e5e5;
  --primary-gray-300: #d4d4d4;
  --primary-gray-400: #a3a3a3;
  --primary-gray-500: #737373;
  --primary-gray-600: #525252;
  --primary-gray-700: #404040;
  --primary-gray-800: #262626;
  --primary-gray-900: #171717;
  
  --animation-duration: 0.3s;
  --animation-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* SVG com linhas animadas */
.auth-lines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}

.auth-lines .line {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  opacity: 0.4;
}

.auth-lines .line-1 {
  animation: drawLine 2.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

.auth-lines .line-2 {
  animation: drawLine 2.5s 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

.auth-lines .line-diagonal {
  animation: drawLine 3.5s 1s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes drawLine {
  to {
    stroke-dashoffset: 0;
  }
}

/* Base Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background-color: #ffffff;
  color: #000000;
}

/* Progress Steps - Minimalist */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--animation-duration) var(--animation-easing);
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gray-200);
  border: 2px solid var(--primary-gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gray-600);
  font-weight: 600;
  margin-bottom: 8px;
  transition: all var(--animation-duration) var(--animation-easing);
}

.step-label {
  font-size: 0.875rem;
  color: var(--primary-gray-600);
  font-weight: 500;
  transition: all var(--animation-duration) var(--animation-easing);
}

.progress-step.active .step-number {
  background: var(--primary-black);
  border-color: var(--primary-black);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.progress-step.active .step-label {
  color: var(--primary-black);
  font-weight: 600;
}

.progress-step.completed .step-number {
  background: var(--primary-gray-600);
  border-color: var(--primary-gray-600);
  color: white;
}

.progress-step.completed .step-label {
  color: var(--primary-gray-600);
  font-weight: 500;
}

.progress-line {
  width: 60px;
  height: 2px;
  background: var(--primary-gray-300);
  margin: 0 10px;
  position: relative;
  top: -20px;
  transition: all var(--animation-duration) var(--animation-easing);
}

.progress-step.active + .progress-line,
.progress-step.completed + .progress-line {
  background: var(--primary-gray-600);
}

/* Form Steps */
.form-step {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-step.hidden {
  display: none;
  opacity: 0;
  transform: translateX(30px);
}

/* Password Strength Meter */
.password-strength {
  margin-top: 0.5rem;
}

.strength-meter {
  height: 4px;
  background: var(--primary-gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.strength-meter-fill {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-meter-fill[data-strength="0"] {
  width: 20%;
  background: #ef4444;
}

.strength-meter-fill[data-strength="1"] {
  width: 40%;
  background: #f97316;
}

.strength-meter-fill[data-strength="2"] {
  width: 60%;
  background: #eab308;
}

.strength-meter-fill[data-strength="3"] {
  width: 80%;
  background: #22c55e;
}

.strength-meter-fill[data-strength="4"] {
  width: 100%;
  background: #16a34a;
}

.strength-text {
  color: var(--primary-gray-600);
  font-size: 0.75rem;
  text-align: right;
}

/* Auth Messages */
#auth-messages {
  margin-bottom: 1.5rem;
}

.auth-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  animation: slideInDown 0.3s ease-out;
}

.auth-message.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-message.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.auth-message.info {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
}

/* Field Error States */
.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1) !important;
}

.field-error-message {
  display: block;
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  animation: fadeIn 0.3s ease;
}

.has-error .field-error-message {
  display: block;
}

/* Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent);
  animation: loading 1.5s infinite;
}

/* Animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes loading {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
  animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

/* Auto Login Spinner */
.loading-spinner-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .progress-line {
    width: 40px;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .progress-line {
    width: 30px;
  }
  
  .step-number {
    width: 32px;
    height: 32px;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
}

/* Focus Styles for Accessibility */
.focus-visible:focus {
  outline: 2px solid var(--primary-black);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white !important;
    color: black !important;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  :root {
    --primary-gray-200: #e0e0e0;
    --primary-gray-300: #c0c0c0;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}