/* src/web/styles/global.css */
*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #0a1628;
  --color-primary-light: #162544;
  --color-primary-dark: #050d17;
  --color-accent: #ff6b4a;
  --color-accent-light: #ff8a70;
  --color-accent-dark: #e54a2a;
  --color-secondary: #14b8a6;
  --color-secondary-light: #2dd4bf;
  --color-secondary-dark: #0d9488;
  --color-bg: #fafbfc;
  --color-bg-alt: #f1f5f9;
  --color-surface: #fff;
  --color-surface-elevated: #fff;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-text-inverse: #fff;
  --color-border: #e2e8f0;
  --color-border-strong: #cbd5e1;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #3b82f6;
  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: clamp(.75rem, .7rem + .25vw, .875rem);
  --text-sm: clamp(.875rem, .8rem + .35vw, 1rem);
  --text-base: clamp(1rem, .9rem + .5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + .6vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + .75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .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;
  --space-20: 5rem;
  --space-24: 6rem;
  --radius-sm: .25rem;
  --radius-md: .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 #0000000d;
  --shadow-md: 0 4px 6px -1px #0000001a, 0 2px 4px -2px #0000001a;
  --shadow-lg: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
  --shadow-xl: 0 20px 25px -5px #0000001a, 0 8px 10px -6px #0000001a;
  --shadow-2xl: 0 25px 50px -12px #00000040;
  --shadow-glow: 0 0 40px #ff6b4a4d;
  --transition-fast: .15s cubic-bezier(.4, 0, .2, 1);
  --transition-base: .25s cubic-bezier(.4, 0, .2, 1);
  --transition-slow: .35s cubic-bezier(.4, 0, .2, 1);
  --transition-bounce: .5s cubic-bezier(.68, -.55, .265, 1.55);
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  line-height: 1.6;
}

#root {
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  letter-spacing: -.02em;
  line-height: 1.2;
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

h5 {
  font-size: var(--text-xl);
}

h6 {
  font-size: var(--text-lg);
}

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-text-inverse);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background: var(--color-border-strong);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

.sr-only {
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromBottom {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .5;
  }
}

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

  100% {
    background-position: 200% 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px #ff6b4a4d;
  }

  50% {
    box-shadow: 0 0 40px #ff6b4a80;
  }
}

.animate-fade-in {
  animation: fadeIn var(--transition-base) ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp var(--transition-slow) ease-out forwards;
}

.animate-fade-in-down {
  animation: fadeInDown var(--transition-slow) ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn var(--transition-base) ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.stagger-1 {
  animation-delay: 0s;
}

.stagger-2 {
  animation-delay: 50ms;
}

.stagger-3 {
  animation-delay: .1s;
}

.stagger-4 {
  animation-delay: .15s;
}

.stagger-5 {
  animation-delay: .2s;
}

.stagger-6 {
  animation-delay: .25s;
}

.stagger-7 {
  animation-delay: .3s;
}

.stagger-8 {
  animation-delay: .35s;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in, .animate-fade-in-up, .animate-fade-in-down, .animate-scale-in {
    animation: none;
  }

  .stagger-1, .stagger-2, .stagger-3, .stagger-4, .stagger-5, .stagger-6, .stagger-7, .stagger-8 {
    animation-delay: 0s;
  }
}

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
}

input::placeholder, textarea::placeholder {
  color: var(--color-text-muted);
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
}

/* src/web/components/AuthLayout.css */
.auth-layout {
  display: flex;
  background-color: var(--color-bg);
  min-height: 100vh;
}

.auth-brand-panel {
  display: none;
  padding: var(--space-12);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-text-inverse);
  position: relative;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  width: 50%;
  min-height: 100vh;
}

@media (width >= 1024px) {
  .auth-brand-panel {
    display: flex;
  }
}

.auth-brand-content {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: flex;
  align-items:  center;
  gap: var(--space-3);
  margin-bottom: var(--space-16);
}

.auth-logo-mark {
  color: var(--color-accent);
  width: 48px;
  height: 48px;
}

.auth-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  letter-spacing: -.02em;
}

.auth-hero {
  max-width: 480px;
}

.auth-hero-title {
  font-size: var(--text-5xl);
  font-weight: var(--font-extrabold);
  margin-bottom: var(--space-6);
  color: var(--color-text-inverse);
  line-height: 1.1;
}

.auth-hero-highlight {
  display: block;
  color: var(--color-accent);
}

@supports (-webkit-background-clip: text) {
  .auth-hero-highlight {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

.auth-hero-subtitle {
  font-size: var(--text-lg);
  color: #fffc;
  margin-bottom: 0;
  line-height: 1.6;
}

.auth-features {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-10);
  flex-wrap: wrap;
}

.auth-feature-pill {
  display: inline-flex;
  align-items:  center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
  background: #ffffff1a;
  border: 1px solid #fff3;
}

.auth-feature-pill:hover {
  background: #ffffff26;
  transform: translateY(-2px);
}

.auth-feature-pill svg {
  color: var(--color-accent);
  width: 16px;
  height: 16px;
}

.auth-decoration {
  position: absolute;
  pointer-events: none;
  overflow: hidden;
  inset: 0;
}

.auth-circle {
  position: absolute;
  background: linear-gradient(135deg, var(--color-accent) 0%, transparent 70%);
  opacity: .1;
  border-radius: 50%;
}

.auth-circle-1 {
  animation: float 6s ease-in-out infinite;
  width: 600px;
  height: 600px;
  top: -200px;
  right: -200px;
}

.auth-circle-2 {
  animation: float 8s ease-in-out infinite reverse;
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
}

.auth-grid {
  position: absolute;
  background-image: linear-gradient(#ffffff08 1px, #0000 1px), linear-gradient(90deg, #ffffff08 1px, #0000 1px);
  background-size: 60px 60px;
  inset: 0;
}

.auth-stats {
  display: flex;
  align-items:  center;
  gap: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid #ffffff1a;
}

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

.auth-stat-value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-accent);
}

.auth-stat-label {
  font-size: var(--text-sm);
  color: #ffffffb3;
}

.auth-stat-divider {
  background: #fff3;
  width: 1px;
  height: 40px;
}

.auth-form-panel {
  display: flex;
  padding: var(--space-6);
  background-color: var(--color-bg);
  position: relative;
  flex: 1;
  justify-content: center;
  align-items:  center;
}

.auth-language-selector {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 10;
}

[dir="rtl"] .auth-language-selector {
  right: auto;
  left: var(--space-4);
}

@media (width >= 1024px) {
  .auth-form-panel {
    padding: var(--space-12);
    width: 50%;
  }
}

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

.auth-mobile-logo {
  display: flex;
  justify-content: center;
  align-items:  center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
}

.auth-mobile-logo .auth-logo-mark {
  color: var(--color-accent);
}

.auth-mobile-logo .auth-logo-text {
  color: var(--color-primary);
}

@media (width >= 1024px) {
  .auth-mobile-logo {
    display: none;
  }
}

.auth-form-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

@media (width >= 1024px) {
  .auth-form-header {
    text-align: left;
  }
}

.auth-form-title {
  font-size: var(--text-3xl);
  font-weight: var(--font-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.auth-form-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}
