* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Lab Kosh Brand Colors */
  --primary: #001A5C;
  --secondary: #B91C1C;
  --background: #F8FAFC;
  --white: #FFFFFF;
  --text-primary: #1E293B;
  --text-secondary: #64748B;
  --border: #E2E8F0;
  --error: #DC2626;
  --success: #16A34A;
  
  /* Functional Colors */
  --primary-hover: #00143D;
  --secondary-hover: #991B1B;
  --border-focus: #001A5C;
  --input-bg: #FFFFFF;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.login-wrapper {
  display: grid;
  grid-template-columns: 480px 1fr;
  min-height: 100vh;
}

/* ===== LOGIN SECTION ===== */
.login-section {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 10;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

/* Logo & Header */
.login-header {
  margin-bottom: 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 2px;
}

.logo-text p {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Welcome Text */
.welcome-text {
  margin-bottom: 32px;
}

.welcome-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.welcome-text p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  pointer-events: none;
  stroke-width: 2;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.form-group input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.form-group input:hover {
  border-color: var(--text-secondary);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 26, 92, 0.08);
}

.form-group input:disabled {
  background-color: var(--background);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Toggle Password */
.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 0.2s ease;
  border-radius: 4px;
}

.toggle-password:hover {
  color: var(--text-primary);
  background-color: var(--background);
}

.eye-icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -8px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  position: relative;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.checkbox-label {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
}

.forgot-password {
  font-size: 14px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Error Messages */
.error-message {
  font-size: 13px;
  color: var(--error);
  display: none;
  margin-top: -4px;
}

.error-message.show {
  display: block;
}

/* Alert Box */
.alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert.error {
  background-color: #FEF2F2;
  color: var(--error);
  border: 1px solid #FECACA;
}

.alert.success {
  background-color: #F0FDF4;
  color: var(--success);
  border: 1px solid #BBF7D0;
}

/* Login Button */
.login-btn {
  width: 100%;
  padding: 14px 24px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  margin-top: 8px;
}

.login-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.login-btn:disabled {
  background-color: var(--text-secondary);
  cursor: not-allowed;
  transform: none;
  opacity: 0.6;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: rotate 1s linear infinite;
}

.spinner circle {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Login Footer */
.login-footer {
  margin-top: 32px;
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.login-footer p {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.login-footer a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* ===== INFO SECTION ===== */
.info-section {
  background-color: var(--primary);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.info-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  transform: translate(30%, -30%);
}

.info-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  transform: translate(-30%, 30%);
}

.info-container {
  position: relative;
  z-index: 1;
  max-width: 600px;
  color: var(--white);
}

/* Info Badge */
.info-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.info-badge svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Info Title & Description */
.info-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.info-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 40px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.feature-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  border-radius: 10px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  color: var(--white);
}

.feature-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--white);
}

.feature-content p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

/* Info Stats */
.info-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .login-wrapper {
    grid-template-columns: 420px 1fr;
  }
  
  .info-section {
    padding: 40px;
  }
  
  .info-title {
    font-size: 30px;
  }
  
  .features-grid {
    gap: 16px;
  }
}

@media (max-width: 968px) {
  .login-wrapper {
    grid-template-columns: 1fr;
  }
  
  .info-section {
    display: none;
  }
  
  .login-section {
    padding: 60px 24px;
  }
}

@media (max-width: 480px) {
  .login-section {
    padding: 40px 20px;
  }
  
  .login-container {
    max-width: 100%;
  }
  
  .welcome-text h2 {
    font-size: 24px;
  }
  
  .logo-text h1 {
    font-size: 20px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for keyboard navigation */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}