/* ============================================
   NURBAK AUTH STYLES - Login & Registration
   ============================================ */

/* CSS Variables - Color Palette */
:root {
  --color-primary: #1A4FFF;
  --color-primary-dark: #0A3AD4;
  --color-primary-darker: #0B2A8A;
  --color-text-primary: #0B0D12;
  --color-text-secondary: #6B7280;
  --color-text-light: #9CA3AF;
  --color-bg-white: #FFFFFF;
  --color-bg-gray: #F9FAFB;
  --color-bg-gray-hover: #F3F4F6;
  --color-border: #E5E7EB;
  --color-border-light: #F3F4F6;
  --color-success: #10B981;
  --color-error: #EF4444;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   AUTH CONTAINER
   ============================================ */

.auth-container {
  min-height: 100vh;
  display: flex;
}

/* ============================================
   BRANDING PANEL (Left Side - Desktop Only)
   ============================================ */

.auth-branding {
  display: none;
  width: 50%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-primary-darker) 100%);
  position: relative;
  overflow: hidden;
}

.auth-branding-decorations {
  position: absolute;
  inset: 0;
}

.auth-branding-blob-1 {
  position: absolute;
  top: 5rem;
  left: 5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  filter: blur(60px);
}

.auth-branding-blob-2 {
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  filter: blur(60px);
}

.auth-branding-circle-1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 37.5rem;
  height: 37.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.auth-branding-circle-2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 25rem;
  height: 25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.auth-branding-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem;
  color: white;
  height: 100%;
}

.auth-branding-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
}

.auth-branding-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  overflow: hidden;
}

.auth-branding-logo-text {
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.auth-branding-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.auth-branding-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  width: fit-content;
}

.auth-branding-title {
  font-size: 2.625rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-branding-title-light {
  opacity: 0.8;
}

.auth-branding-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-branding-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.9);
}

.auth-branding-feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-branding-feature-text {
  font-size: 0.9375rem;
}

.auth-branding-stats {
  display: flex;
  gap: 2rem;
}

.auth-branding-stat-value {
  font-size: 1.75rem;
  font-weight: 700;
}

.auth-branding-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.auth-branding-testimonial {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.auth-branding-testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.auth-branding-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-branding-testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
}

.auth-branding-testimonial-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.auth-branding-testimonial-role {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   FORM PANEL (Right Side)
   ============================================ */

.auth-form-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--color-bg-white);
}

.auth-mobile-header {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border-light);
  padding: 1rem 1.5rem;
}

.auth-mobile-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.auth-mobile-logo-icon {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  overflow: hidden;
}

.auth-mobile-logo-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-primary);
}

.auth-form-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.auth-form-container {
  width: 100%;
  max-width: 25rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.auth-form-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

.auth-form-subtitle {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
}

/* ============================================
   SOCIAL BUTTONS
   ============================================ */

.auth-social-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.auth-social-buttons-single {
  grid-template-columns: 1fr;
}

.auth-social-form {
  display: contents;
}

.auth-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-bg-gray);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth-social-button:hover {
  background: var(--color-bg-gray-hover);
}

.auth-social-button svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* ============================================
   DIVIDER
   ============================================ */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.auth-divider-text {
  font-size: 0.8125rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.auth-form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.auth-form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.auth-form-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration: none;
}

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

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

.auth-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}

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

.auth-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  background: var(--color-bg-gray);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
}

.auth-input::placeholder {
  color: var(--color-text-light);
}

.auth-input:focus {
  outline: none;
  background: var(--color-bg-white);
  box-shadow: 0 0 0 2px rgba(26, 79, 255, 0.2);
}

.auth-input.has-action {
  padding-right: 3rem;
}

.auth-input-action {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.auth-input-action:hover {
  color: var(--color-text-secondary);
}

/* ============================================
   PASSWORD STRENGTH INDICATOR
   ============================================ */

.password-checks {
  display: flex;
  gap: 1rem;
  padding-top: 0.5rem;
}

.password-check {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.password-check-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-border);
  transition: background-color 0.2s ease;
}

.password-check-dot.valid {
  background: var(--color-success);
}

.password-check-label {
  font-size: 0.75rem;
  color: var(--color-text-light);
  transition: color 0.2s ease;
}

.password-check-label.valid {
  color: var(--color-success);
}

/* ============================================
   CHECKBOX
   ============================================ */

.auth-checkbox-wrapper {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  cursor: pointer;
}

.auth-checkbox-container {
  position: relative;
  margin-top: 0.125rem;
}

.auth-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-checkbox-box {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.auth-checkbox-input:checked+.auth-checkbox-box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.auth-checkbox-checkmark {
  display: none;
  color: white;
}

.auth-checkbox-input:checked+.auth-checkbox-box .auth-checkbox-checkmark {
  display: block;
}

.auth-checkbox-label {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */

.auth-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.auth-submit:hover:not(:disabled) {
  background: var(--color-primary-dark);
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-submit.loading {
  opacity: 0.7;
}

.auth-submit-icon {
  transition: transform 0.2s ease;
}

.auth-submit:hover:not(:disabled) .auth-submit-icon {
  transform: translateX(0.25rem);
}

.auth-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.hidden {
  display: none;
}

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

/* ============================================
   FOOTER TEXT
   ============================================ */

.auth-footer-text {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.auth-footer-link {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.auth-footer-link:hover {
  text-decoration: underline;
}

/* ============================================
   PAGE FOOTER
   ============================================ */

.auth-page-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border-light);
}

.auth-page-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
}

.auth-page-footer-link {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.auth-page-footer-link:hover {
  color: var(--color-text-secondary);
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.auth-flash {
  padding: 1rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.auth-flash.notice {
  background: #DBEAFE;
  color: #1E40AF;
  border: 1px solid #93C5FD;
}

.auth-flash.alert {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.auth-flash.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */

@media (min-width: 1024px) {
  .auth-branding {
    display: block;
  }

  .auth-form-panel {
    width: 50%;
  }

  .auth-mobile-header {
    display: none;
  }
}
/* ============================================
   ERROR MESSAGES BLOCK
   ============================================ */

.auth-error-block {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.auth-error-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #B91C1C;
}

.auth-error-header svg {
  flex-shrink: 0;
}

.auth-error-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.auth-error-list {
  list-style: none;
  padding-left: 2.75rem; /* Alineado con el texto del título (icon + gap) */
  margin: 0;
}

.auth-error-list li {
  font-size: 0.875rem;
  color: #B91C1C;
  line-height: 1.5;
  margin-bottom: 0.25rem;
  position: relative;
}

.auth-error-list li::before {
  content: "•";
  position: absolute;
  left: -1rem;
  color: #EF4444;
}
