/* login.css - Professional Login Styles for Metingz */
/* ===== DESIGN SYSTEM ===== */
:root {
  /* Color Palette */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  
  --secondary-50: #f0fdf4;
  --secondary-100: #dcfce7;
  --secondary-500: #10b981;
  --secondary-600: #059669;
  
  --accent-500: #ef4444;
  --accent-600: #dc2626;
  
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-400: #94a3b8;
  --neutral-500: #64748b;
  --neutral-600: #475569;
  --neutral-700: #334155;
  --neutral-800: #1e293b;
  --neutral-900: #0f172a;
  
  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;
  --info: #06b6d4;
  
  /* Semantic Colors */
  --bg-primary: #ffffff;
  --bg-secondary: var(--neutral-50);
  --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-overlay: rgba(255, 255, 255, 0.1);
  
  --text-primary: var(--neutral-800);
  --text-secondary: var(--neutral-600);
  --text-muted: var(--neutral-500);
  
  --border-light: var(--neutral-200);
  --border-medium: var(--neutral-300);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  
  /* Spacing */
  --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;
  
  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== LOGIN WRAPPER ===== */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-4);
  position: relative;
  overflow: hidden;
}

/* Background Animation */
.background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 200px;
  height: 200px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--space-10) var(--space-8);
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===== HEADER SECTION ===== */
.login-header {
  text-align: center;
  margin-bottom: var(--space-8); /* Reduced from var(--space-10) */
}

.logo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2); /* Reduced from var(--space-6) */
}

.logo-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-gradient);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.logo-container:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow-2xl);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  filter: brightness(0) invert(1);
}

.logo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
  font-weight: 600;
}

.login-header h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
  max-width: 300px;
}

/* ===== MESSAGES ===== */
.messages-container {
  margin-bottom: var(--space-4); /* Reduced from var(--space-6) */
}

.message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3); /* Reduced from var(--space-4) */
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
  border: 1px solid;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.message::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

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

.message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-600);
  border-color: rgba(16, 185, 129, 0.2);
}

.message.success::before {
  background: var(--success);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.2);
}

.message.error::before {
  background: var(--error);
}

.message.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border-color: rgba(245, 158, 11, 0.2);
}

.message.warning::before {
  background: var(--warning);
}

.message.info {
  background: rgba(6, 182, 212, 0.1);
  color: var(--info);
  border-color: rgba(6, 182, 212, 0.2);
}

.message.info::before {
  background: var(--info);
}

.message-icon {
  flex-shrink: 0;
  font-size: 1.125rem;
  margin-top: 0.125rem;
}

.message-content {
  flex: 1;
}

.message-text {
  display: block;
  line-height: 1.5;
}

.message-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition-fast);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  font-size: 0.875rem;
}

.message-close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.1);
}

/* ===== FORM STYLES ===== */
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2); /* Reduced from var(--space-6) */
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  transition: var(--transition-fast);
}

.form-label i {
  color: var(--primary-500);
  width: 1rem;
  font-size: 0.875rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: var(--transition-base);
}

/* FIXED: Input padding to prevent icon overlap */
.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-10); /* Reduced padding and increased left padding */
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: all var(--transition-base);
  line-height: 1.5;
  font-family: var(--font-primary);
}

.form-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.form-input:invalid:not(:focus) {
  border-color: var(--border-light);
}

.input-wrapper.focused .form-input {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* FIXED: Input icon positioning */
.input-icon {
  position: absolute;
  left: var(--space-3); /* Reduced from var(--space-4) */
  color: var(--text-muted);
  z-index: 2;
  pointer-events: none;
  transition: var(--transition-fast);
  font-size: 1.125rem;
}

.input-wrapper.focused .input-icon {
  color: var(--primary-500);
  transform: scale(1.1);
}

.password-toggle {
  position: absolute;
  right: var(--space-3); /* Reduced from var(--space-4) */
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.password-toggle:hover {
  color: var(--primary-500);
  background: var(--neutral-100);
}

.input-feedback {
  font-size: var(--text-xs);
  font-weight: 500;
  margin-top: var(--space-1);
  min-height: 1.25rem;
  transition: var(--transition-fast);
}

.form-group.valid .form-input {
  border-color: var(--success);
}

.form-group.invalid .form-input {
  border-color: var(--error);
}

/* ===== FORM OPTIONS ===== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2); /* Added to reduce gap from password field */
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  user-select: none;
  margin: 0;
  transition: var(--transition-fast);
}

.checkbox-container:hover {
  color: var(--text-primary);
}

.checkbox-container input {
  display: none;
}

.checkmark {
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--border-medium);
  border-radius: var(--radius-sm);
  position: relative;
  transition: all var(--transition-fast);
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-container input:checked + .checkmark {
  background: var(--primary-500);
  border-color: var(--primary-500);
}

.checkbox-container input:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}

.checkbox-container:hover .checkmark {
  border-color: var(--primary-500);
}

.forgot-password {
  color: var(--primary-600);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.forgot-password:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
  width: 100%;
  padding: var(--space-4) var(--space-6); /* Reduced from var(--space-5) var(--space-8) */
  background: var(--bg-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base); /* Reduced from var(--text-lg) */
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2); /* Reduced from var(--space-3) */
  min-height: 3rem; /* Reduced from 3.5rem */
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  margin-top: var(--space-2); /* Added to reduce gap from form options */
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left var(--transition-slow);
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-2px); /* Reduced from -3px */
  box-shadow: var(--shadow-xl);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.submit-btn.loading {
  pointer-events: none;
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .btn-loader {
  opacity: 1;
}

.btn-text {
  transition: opacity var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-loader {
  position: absolute;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.loader {
  width: 1.25rem; /* Reduced from 1.5rem */
  height: 1.25rem; /* Reduced from 1.5rem */
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-3); /* Reduced from var(--space-4) */
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  margin: var(--space-3) 0; /* Reduced from var(--space-4) */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ===== ALTERNATIVE LOGIN ===== */
.alternative-login {
  text-align: center;
}

.register-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2); /* Reduced from var(--space-3) */
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm); /* Reduced from var(--text-base) */
  transition: all var(--transition-base);
  padding: var(--space-3) var(--space-4); /* Reduced from var(--space-4) var(--space-6) */
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  width: 100%;
  justify-content: center;
}

.register-link:hover {
  background: var(--primary-50);
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.register-link i {
  font-size: 0.875rem;
  transition: transform var(--transition-fast);
}

.register-link:hover i {
  transform: translateX(2px);
}

/* ===== SOCIAL LOGIN ===== */
.social-login {
  margin-top: var(--space-6); /* Reduced from var(--space-8) */
  padding-top: var(--space-4); /* Reduced from var(--space-6) */
  border-top: 1px solid var(--border-light);
}

.social-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-3); /* Reduced from var(--space-4) */
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2); /* Reduced from var(--space-3) */
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3); /* Reduced from var(--space-3) var(--space-4) */
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-btn.google-btn:hover {
  border-color: #DB4437;
  background: rgba(219, 68, 55, 0.05);
}

.social-btn.linkedin-btn:hover {
  border-color: #0077B5;
  background: rgba(0, 119, 181, 0.05);
}

.social-btn i {
  font-size: 1.125rem;
}

/* ===== SECURITY NOTICE ===== */
.security-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3); /* Reduced from var(--space-4) */
  background: var(--neutral-50);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  margin-top: var(--space-4); /* Reduced from var(--space-6) */
  backdrop-filter: blur(10px);
}

.security-notice i {
  color: var(--success);
  font-size: 0.875rem;
}

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

/* Tablets and Small Laptops */
@media (max-width: 1024px) {
  .login-container {
    padding: var(--space-8) var(--space-6); /* Reduced from var(--space-10) var(--space-8) */
    max-width: 440px;
  }
  
  .logo-container {
    width: 70px;
    height: 70px;
  }
  
  .login-header h2 {
    font-size: var(--text-2xl);
  }
  
  .login-subtitle {
    font-size: var(--text-base);
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  .login-wrapper {
    padding: var(--space-6) var(--space-3);
    align-items: flex-start;
    min-height: 100vh;
  }
  
  .login-container {
    padding: var(--space-6) var(--space-4); /* Reduced from var(--space-8) var(--space-6) */
    margin-top: var(--space-6); /* Reduced from var(--space-8) */
    max-width: 100%;
    border-radius: var(--radius-xl);
  }
  
  .logo-container {
    width: 60px;
    height: 60px;
    padding: var(--space-2);
  }
  
  .login-header h2 {
    font-size: var(--text-xl);
  }
  
  .login-subtitle {
    font-size: var(--text-sm);
  }
  
  .form-input {
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-8); /* Reduced padding */
    font-size: var(--text-sm);
  }
  
  .input-icon {
    left: var(--space-2);
    font-size: 1rem;
  }
  
  .password-toggle {
    right: var(--space-2); /* Reduced from var(--space-3) */
    padding: var(--space-1);
    font-size: 0.875rem;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2); /* Reduced from var(--space-3) */
  }
  
  .submit-btn {
    padding: var(--space-3) var(--space-4); /* Reduced from var(--space-4) var(--space-6) */
    font-size: var(--text-sm); /* Reduced from var(--text-base) */
    min-height: 2.75rem; /* Reduced from 3rem */
  }
  
  .social-buttons {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
  .login-wrapper {
    padding: var(--space-4) var(--space-2);
  }
  
  .login-container {
    padding: var(--space-4) var(--space-3); /* Reduced from var(--space-6) var(--space-4) */
    border-radius: var(--radius-lg);
  }
  
  .login-header {
    margin-bottom: var(--space-6); /* Reduced from var(--space-8) */
  }
  
  .logo-container {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
  }
  
  .login-header h2 {
    font-size: var(--text-lg);
  }
  
  .login-subtitle {
    font-size: var(--text-xs);
  }
  
  .message {
    padding: var(--space-2); /* Reduced from var(--space-3) */
    font-size: var(--text-xs);
  }
  
  .form-input {
    padding: var(--space-2) var(--space-2) var(--space-2) var(--space-7); /* Further reduced padding */
    font-size: var(--text-xs);
  }
  
  .input-icon {
    left: var(--space-2);
    font-size: 0.875rem;
  }
  
  .submit-btn {
    padding: var(--space-2) var(--space-3); /* Reduced from var(--space-3) var(--space-4) */
    font-size: var(--text-xs); /* Reduced from var(--text-sm) */
    min-height: 2.5rem; /* Reduced from 2.75rem */
  }
  
  .register-link {
    padding: var(--space-2) var(--space-3); /* Reduced from var(--space-3) var(--space-4) */
    font-size: var(--text-xs); /* Reduced from var(--text-sm) */
  }
  
  .security-notice {
    font-size: 0.625rem;
    padding: var(--space-2); /* Reduced from var(--space-3) */
  }
  
  /* Hide background animation on very small screens */
  .background-animation {
    display: none;
  }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  .submit-btn {
    padding: var(--space-2) var(--space-2); /* Further reduced */
    font-size: var(--text-xs);
    min-height: 2.25rem; /* Further reduced */
  }
  
  .login-container {
    padding: var(--space-3) var(--space-2); /* Further reduced */
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */

/* Focus styles */
.form-input:focus,
.password-toggle:focus,
.submit-btn:focus,
.register-link:focus,
.forgot-password:focus,
.social-btn:focus {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .login-container {
    border: 2px solid var(--neutral-900);
  }
  
  .form-input {
    border-width: 2px;
  }
  
  .submit-btn {
    border: 2px solid var(--primary-700);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .login-container {
    animation: none;
  }
  
  .message {
    animation: none;
  }
  
  .submit-btn::before,
  .shape {
    display: none;
  }
  
  .submit-btn:hover,
  .register-link:hover,
  .logo-container:hover,
  .social-btn:hover {
    transform: none;
  }
  
  .loader {
    animation: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .login-container {
    background: var(--neutral-900);
    border-color: var(--neutral-700);
    color: var(--neutral-100);
  }
  
  .form-input {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
    color: var(--neutral-100);
  }
  
  .form-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  }
  
  .form-input::placeholder {
    color: var(--neutral-500);
  }
  
  .checkmark {
    background: var(--neutral-800);
    border-color: var(--neutral-600);
  }
  
  .register-link {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
    color: var(--primary-400);
  }
  
  .register-link:hover {
    background: var(--neutral-700);
    border-color: var(--primary-500);
  }
  
  .security-notice {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
  }
  
  .password-toggle:hover {
    background: var(--neutral-700);
  }
  
  .social-btn {
    background: var(--neutral-800);
    border-color: var(--neutral-700);
    color: var(--neutral-100);
  }
  
  .login-header h2 {
    background: linear-gradient(135deg, var(--primary-400), var(--primary-300));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}

/* Hide browser's password reveal icons */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
  visibility: hidden;
  display: none;
  pointer-events: none;
  position: absolute;
  right: 0;
}

/* Print styles */
@media print {
  .login-container {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: white !important;
    color: black !important;
  }
  
  .submit-btn,
  .password-toggle,
  .message-close,
  .social-buttons {
    display: none !important;
  }
  
  .logo-container {
    background: #667eea !important;
  }
}

/* Add to login.css or in a style tag */
.invite-login-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    animation: slideInDown 0.5s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.invite-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.invite-icon {
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invite-details h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.invite-details p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.invite-preview {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 4px solid #4ade80;
}

.invite-preview p {
    margin: 5px 0;
}

.invite-host {
    font-size: 13px;
    color: #c7d2fe;
}

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