/* ========================================
   AUTHENTICATION - ENTERPRISE DESIGN
   Professional, Refined & Sophisticated
======================================== */

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

:root {
  /* Brand Colors - Professional Palette */
  --auth-primary: #1E3A8A;
  --auth-primary-light: #2563EB;
  --auth-primary-dark: #1E40AF;
  --auth-secondary: #059669;
  --auth-accent: #DC2626;
  
  /* Neutral Palette - Refined Grays */
  --auth-white: #FFFFFF;
  --auth-gray-50: #FAFAFA;
  --auth-gray-100: #F5F5F5;
  --auth-gray-200: #E5E5E5;
  --auth-gray-300: #D4D4D4;
  --auth-gray-400: #A3A3A3;
  --auth-gray-500: #737373;
  --auth-gray-600: #525252;
  --auth-gray-700: #404040;
  --auth-gray-800: #262626;
  --auth-gray-900: #171717;
  
  /* Shadows - Subtle & Professional */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  
  /* Spacing - 8px Grid System */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Border Radius - Consistent */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions - Smooth & Natural */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   RESET & BASE
======================================== */
.auth-shell {
  min-height: 100vh;
  display: flex;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
  background: #FAFAFA;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove decorative elements */
.auth-shell::before,
.auth-shell::after {
  display: none;
}

/* ========================================
   BRAND PANEL - Left Side
======================================== */
.auth-panel--brand {
  flex: 1;
  max-width: 50%;
  display: none;
  padding: var(--space-16) var(--space-12);
  position: relative;
  background: var(--auth-white);
  border-right: 1px solid var(--auth-gray-200);
}

.auth-brand {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.auth-brand-image {
  margin: var(--space-8) 0;
  text-align: center;
}

.auth-brand-image img {
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: 'Sora', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-12);
  color: var(--auth-gray-900);
  letter-spacing: -0.02em;
}

.auth-logo img {
  height: 32px;
  width: auto;
  transition: opacity var(--transition);
}

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

.auth-brand h2 {
  font-family: 'Sora', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: 1.2;
  color: var(--auth-gray-900);
  letter-spacing: -0.03em;
}

.auth-brand > p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--auth-gray-600);
  margin-bottom: var(--space-12);
  font-weight: 400;
}

/* Highlight Features - Minimal Design */
.auth-highlight {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.auth-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: transparent;
  border-radius: var(--radius-lg);
  border: 1px solid var(--auth-gray-200);
  transition: all var(--transition);
}

.auth-highlight-item:hover {
  background: var(--auth-gray-50);
  border-color: var(--auth-gray-300);
  transform: translateX(4px);
}

.auth-highlight-item i {
  font-size: 1.25rem;
  color: var(--auth-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-highlight-item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: var(--space-1);
  color: var(--auth-gray-900);
  letter-spacing: -0.01em;
}

.auth-highlight-item div div {
  font-size: 0.875rem;
  color: var(--auth-gray-600);
  line-height: 1.5;
}

/* ========================================
   FORM PANEL - Right Side
======================================== */
.auth-panel--form {
  flex: 1;
  max-width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  background: var(--auth-gray-50);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--auth-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--auth-gray-200);
}

/* Badge - Minimal */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--auth-gray-100);
  color: var(--auth-gray-700);
  border-radius: var(--radius-md);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-8);
  border: 1px solid var(--auth-gray-200);
}

.auth-badge i {
  font-size: 0.75rem;
  color: var(--auth-primary);
}

/* Typography - Professional */
.auth-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--auth-gray-900);
  margin-bottom: var(--space-2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.9375rem;
  color: var(--auth-gray-600);
  margin-bottom: var(--space-8);
  line-height: 1.5;
  font-weight: 400;
}

/* ========================================
   FORM ELEMENTS - Refined
======================================== */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--auth-gray-900);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

.auth-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--auth-gray-900);
  background: var(--auth-white);
  border: 1.5px solid var(--auth-gray-300);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  outline: none;
}

.auth-input::placeholder {
  color: var(--auth-gray-400);
}

.auth-input:hover {
  border-color: var(--auth-gray-400);
}

.auth-input:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.08);
}

/* Actions - Clean Links */
.auth-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-2);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.auth-actions a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--auth-primary);
  text-decoration: none;
  transition: color var(--transition);
  letter-spacing: -0.01em;
}

.auth-actions a:hover {
  color: var(--auth-primary-dark);
}

/* Submit Button - Professional */
.auth-submit {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--auth-white);
  background: var(--auth-gray-900);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  margin-top: var(--space-6);
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-sm);
}

.auth-submit:hover {
  background: var(--auth-gray-800);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.auth-submit:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

/* Remove shine effect */
.auth-submit::before {
  display: none;
}

/* Alert Messages - Minimal */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: var(--space-6);
  font-weight: 500;
  border: 1px solid;
}

.alert-danger {
  background: #FEF2F2;
  color: #991B1B;
  border-color: #FCA5A5;
}

.alert-success {
  background: #F0FDF4;
  color: #166534;
  border-color: #86EFAC;
}

/* ========================================
   REGISTRATION PAGE SPECIFIC
======================================== */

/* Form Grid - Two columns on desktop */
.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .auth-form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Larger card for registration */
.auth-card--large {
  max-width: 640px;
}

/* Required field indicator */
.required {
  color: var(--auth-accent);
  font-weight: 700;
}

/* Password hint */
.auth-hint {
  display: block;
  font-size: 0.8125rem;
  color: var(--auth-gray-500);
  margin-top: var(--space-2);
  line-height: 1.4;
}

/* Footer link */
.auth-footer {
  text-align: center;
  margin-top: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--auth-gray-200);
  font-size: 0.875rem;
  color: var(--auth-gray-600);
}

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

.auth-footer a:hover {
  color: var(--auth-primary-dark);
}

/* ========================================
   RESPONSIVE
======================================== */

/* Mobile */
@media (max-width: 767px) {
  .auth-shell {
    flex-direction: column;
  }

  .auth-panel--brand {
    display: none;
  }

  .auth-brand {
    max-width: 100%;
  }

  .auth-brand h2 {
    font-size: 1.75rem;
    text-align: center;
  }

  .auth-brand > p {
    text-align: center;
    font-size: 0.9375rem;
  }

  .auth-brand-image {
    margin: var(--space-4) 0;
  }

  .auth-brand-image img {
    max-width: 280px;
  }

  .auth-panel--form {
    max-width: 100%;
    width: 100%;
    padding: 0px;
    align-items: stretch;
  }
  
  .auth-card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .auth-panel--brand {
    display: flex;
  }
  
  .auth-card {
    padding: 2.5rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .auth-panel--brand {
    padding: 3rem;
  }
  
  .auth-brand h2 {
    font-size: 2.5rem;
  }
}

/* ========================================
   ACCESSIBILITY
======================================== */
.auth-input:focus-visible,
.auth-submit:focus-visible,
.auth-actions a:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
