
/* Modern Automotive Corporate Login Styles */
:root {
  /* Automotive Corporate Colors */
  --primary-color: #4a5568; /* Blue-Gray */
  --primary-dark: #2d3748;
  --secondary-color: #718096;
  --accent-orange: #ed8936; /* Corporate Orange */
  --accent-green: #68d391; /* Green-Gray */
  --success-color: #48bb78;
  --danger-color: #f56565;
  --warning-color: #ed8936;
  
  /* Neutral Colors */
  --light-gray: #f7fafc;
  --medium-gray: #e2e8f0;
  --dark-gray: #2d3748;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --white: #ffffff;
  
  /* Automotive Gradients */
  --gradient-primary: linear-gradient(135deg, #4a5568 0%, #2d3748 50%, #1a202c 100%);
  --gradient-accent: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
  --gradient-overlay: linear-gradient(135deg, rgba(74, 85, 104, 0.9) 0%, rgba(45, 55, 72, 0.95) 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Border Radius */
  --border-radius: 8px;
  --border-radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gradient-primary);
  overflow: hidden;
}

/* Modern Container */
.container-login100-modern {
  width: 100%;
  height: 100vh;
  display: flex;
  position: relative;
}

/* Left Side - Automotive Branding */
.login-branding-side {
  flex: 1;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Automotive Pattern Overlay */
.login-branding-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(237, 137, 54, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(104, 211, 145, 0.1) 0%, transparent 50%),
    linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.02) 50%, transparent 60%);
  background-size: 200px 200px, 150px 150px, 100px 100px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 200px 200px, -150px -150px, 100px 100px; }
}

.branding-content {
  text-align: center;
  color: var(--white);
  z-index: 2;
  position: relative;
  max-width: 500px;
  padding: 2rem;
}

.company-logo img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 2rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.company-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.1;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-tagline {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 3rem;
  color: var(--accent-orange);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}



/* Right Side - Login Form */
.login-form-side {
  flex: 1;
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

/* Subtle automotive pattern for form side */
.login-form-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(237, 137, 54, 0.03) 0%, transparent 50%);
  background-size: 300px 300px, 200px 200px;
}

.login-form-container {
  width: 100%;
  max-width: 420px;
  z-index: 2;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.login-header .login-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 0.75rem;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.login-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 2px;
}

.login-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* Modern Alert */
.modern-alert {
  background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%);
  border: 1px solid #fc8181;
  color: #c53030;
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* Modern Form */
.modern-login-form {
  width: 100%;
}

.form-group-modern {
  margin-bottom: 1.75rem;
}

.form-label-modern {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

.input-icon-modern {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1.125rem;
  z-index: 2;
  transition: var(--transition);
}

.input-modern {
  width: 100%;
  height: 3.25rem;
  padding: 0 1rem 0 3rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.input-modern:focus {
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.2), var(--shadow-md);
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
}

.input-modern:focus + .input-icon-modern {
  color: var(--accent-orange);
  transform: translateY(-50%) scale(1.1);
}

.input-modern::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.checkbox-modern {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  user-select: none;
  font-weight: 500;
}

.checkbox-modern input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 0.75rem;
  position: relative;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.checkbox-modern input[type="checkbox"]:checked + .checkmark {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  transform: scale(1.05);
}

.checkbox-modern input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
}

.forgot-password {
  font-size: 0.875rem;
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

.forgot-password::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-orange);
  transition: var(--transition);
}

.forgot-password:hover {
  color: #dd6b20;
  transform: translateY(-1px);
}

.forgot-password:hover::after {
  width: 100%;
}

/* Modern Button */
.btn-login-modern {
  width: 100%;
  height: 3.25rem;
  background: var(--gradient-accent);
  color: #1a202c;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-md);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.btn-login-modern:hover {
  background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  color: var(--white);
}

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

.btn-login-modern:active {
  transform: translateY(0);
  background: linear-gradient(135deg, #c05621 0%, #9c4221 100%);
  color: var(--white);
}

.btn-icon {
  transition: var(--transition);
  font-size: 1.125rem;
}

.btn-login-modern:hover .btn-icon {
  transform: translateX(3px);
}

/* Enhanced focus state for orange button */
.btn-login-modern:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(237, 137, 54, 0.3), var(--shadow-xl);
}

/* Login Footer */
.login-footer {
  text-align: center;
}

.copyright-modern {
  font-size: 0.75rem;
  color: rgba(245, 245, 245, 0.7);
  line-height: 1.6;
  font-weight: 500;
}

.copyright-modern a {
  color: var(--accent-orange) !important;
  text-decoration: none;
  transition: var(--transition);
}

.copyright-modern a:hover {
  color: #dd6b20 !important;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container-login100-modern {
    flex-direction: column;
  }
  
  .login-branding-side {
    flex: 0 0 40%;
    min-height: 40vh;
  }
  
  .company-name {
    font-size: 2rem;
  }
  
  .company-tagline {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .login-branding-side {
    flex: 0 0 30%;
    min-height: 30vh;
  }
  
  .company-name {
    font-size: 1.5rem;
  }
  
  .company-tagline {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
  
  .company-logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
  }
  
  .login-form-side {
    padding: 1rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .login-branding-side {
    display: none;
  }
  
  .login-form-side {
    flex: 1;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* Loading Animation */
.btn-login-modern.loading {
  pointer-events: none;
}

.btn-login-modern.loading .btn-text {
  opacity: 0;
}

.btn-login-modern.loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top: 2px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Legacy styles compatibility */
/* Additional animations and effects */
.animate-in {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

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

/* Input focus and error states */
.input-wrapper-modern.focused .input-icon-modern {
  color: var(--primary-color);
}

.input-modern.error {
  border-color: var(--danger-color);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Enhanced button states */
.btn-login-modern:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn-login-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Smooth transitions for all interactive elements */
.checkbox-modern:hover .checkmark {
  border-color: var(--accent-orange);
  background: rgba(237, 137, 54, 0.1);
}

.form-label-modern {
  transition: var(--transition);
}

.input-wrapper-modern.focused .form-label-modern {
  color: #fbbf24;
}



/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .input-modern {
    border-width: 3px;
  }
  
  .btn-login-modern {
    border: 2px solid var(--white);
  }
}

/* Dark mode support (for future implementation) */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --white: #1e293b;
    --light-gray: #334155;
    --medium-gray: #475569;
  }
}
/* Industry Highlights */
.industry-highlights {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  min-width: 120px;
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--accent-orange);
  margin-bottom: 0.25rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.highlight-item:hover i {
  transform: scale(1.1);
  background: rgba(237, 137, 54, 0.2);
  color: #ffffff;
}

/* Enhanced Responsive Design for Automotive Theme */
@media (max-width: 1200px) {
  .company-name {
    font-size: 2.25rem;
  }
  
  .industry-highlights {
    gap: 1.5rem;
  }
}

@media (max-width: 1024px) {
  .container-login100-modern {
    flex-direction: column;
  }
  
  .login-branding-side {
    flex: 0 0 45%;
    min-height: 45vh;
  }
  
  .company-name {
    font-size: 2rem;
  }
  
  .company-tagline {
    font-size: 1.125rem;
  }
  
  .industry-highlights {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .highlight-item {
    min-width: 100px;
  }
  
  .highlight-item i {
    font-size: 1.25rem;
    padding: 0.5rem;
  }
}

@media (max-width: 768px) {
  .login-branding-side {
    flex: 0 0 35%;
    min-height: 35vh;
  }
  
  .company-name {
    font-size: 1.75rem;
  }
  
  .company-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .company-logo img {
    width: 100px;
    height: 100px;
    margin-bottom: 1.5rem;
  }
  
  .industry-highlights {
    flex-direction: row;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .highlight-item {
    font-size: 0.75rem;
    min-width: 80px;
  }
  
  .highlight-item span {
    display: none;
  }
  
  .login-form-side {
    padding: 1.5rem;
  }
  
  .login-title {
    font-size: 1.75rem;
  }
  
  .form-options {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .login-branding-side {
    flex: 0 0 25%;
    min-height: 25vh;
  }
  
  .company-name {
    font-size: 1.5rem;
  }
  
  .company-tagline {
    font-size: 0.875rem;
  }
  
  .industry-highlights {
    display: none;
  }
  
  .login-form-side {
    padding: 1rem;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
  
  .login-subtitle {
    font-size: 1rem;
  }
}

/* Automotive-specific animations */
@keyframes gearRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.highlight-item i.fa-cogs {
  animation: gearRotate 10s linear infinite;
}

.highlight-item:hover i.fa-cogs {
  animation-duration: 2s;
}

/* Enhanced loading state for orange button */
.btn-login-modern.loading {
  pointer-events: none;
  background: var(--gradient-accent);
  opacity: 0.8;
}

.btn-login-modern.loading .btn-text {
  opacity: 0;
}

.btn-login-modern.loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid transparent;
  border-top: 2px solid var(--white);
  border-right: 2px solid var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Additional automotive visual elements */
.login-branding-side::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: 1px;
}

/* Enhanced focus states for better accessibility */
.input-modern:focus,
.btn-login-modern:focus,
.checkbox-modern:focus-within,
.forgot-password:focus {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .login-branding-side {
    display: none;
  }
  
  .login-form-side {
    flex: 1;
  }
  

}
/* Force white color for login title - override any inherited styles */
.login-form-container .login-header .login-title,
.login-form-container h2.login-title,
h2.login-title {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* Ensure subtitle is also properly colored */
.login-form-container .login-header .login-subtitle,
.login-subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}