/* ===================================
   MODERN MINIMALIST LOGIN DESIGN
   Colors: Blue (#2563eb) & White (#ffffff)
   Style: Clean, Modern, Responsive
   =================================== */

/* CSS Reset & Variables */
:root {
  /* Primary Colors */
  --primary-blue: #2563eb;
  --primary-blue-hover: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --primary-blue-dark: #1e40af;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --error: #ef4444;
  --error-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Borders */
  --border-radius: 0.75rem;
  --border-radius-sm: 0.5rem;
  --border-radius-lg: 1rem;
  --border-width: 1px;
  
  /* Shadows */
  --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);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  color: var(--gray-900);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  min-height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.login-container {
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}

/* Background Pattern */
.login-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(37, 99, 235, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(37, 99, 235, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

/* Login Card */
.login-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 1200px;
  height: auto;
  min-height: 70vh;
  max-height: 90vh;
  position: relative;
  z-index: 1;
  border: var(--border-width) solid rgba(37, 99, 235, 0.1);
  display: flex;
  overflow: hidden;
  transition: height 0.3s ease;
}

/* When reCAPTCHA is present, allow more flexibility */
.login-card.has-recaptcha {
  min-height: 75vh;
  max-height: 95vh;
}

/* Brand Section - Left Side */
.brand-section {
  flex: 1.2;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  position: relative;
}

/* Background Pattern for Brand Section */
.brand-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .brand-section::before {
    display: none;
  }
}

.logo-wrapper {
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

.company-logo {
  height: 120px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

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

.welcome-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: 0;
  line-height: 1.2;
}

/* Form Section - Right Side */
.form-section {
  flex: 1;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

/* Form Header */
.form-header {
  margin-bottom: var(--space-md);
}

.form-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--gray-900);
  margin-bottom: var(--space-xs);
}

.form-subtitle {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  margin: 0;
}

/* Alert Styles */
.alert-wrapper {
  margin-bottom: var(--space-sm);
}

.alert {
  padding: var(--space-sm);
  border-radius: var(--border-radius);
  border: var(--border-width) solid;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--font-size-xs);
  position: relative;
}

.alert-success {
  background-color: var(--success-light);
  border-color: var(--success);
  color: var(--success);
}

.alert-danger {
  background-color: var(--error-light);
  border-color: var(--error);
  color: var(--error);
}

.alert-warning {
  background-color: var(--warning-light);
  border-color: var(--warning);
  color: var(--warning);
}

.alert-info {
  background-color: var(--info-light);
  border-color: var(--info);
  color: var(--info);
}

.alert-icon {
  flex-shrink: 0;
  font-size: var(--font-size-lg);
}

.alert-text {
  flex: 1;
}

.alert-close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.alert-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.login-form {
  margin-bottom: var(--space-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.form-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-sm);
  overflow: hidden;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.input-wrapper {
  position: relative;
}

.form-input {
  width: 100%;
  height: 44px;
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--gray-200);
  border-radius: var(--border-radius);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  color: var(--gray-900);
  background-color: var(--white);
  transition: var(--transition-normal);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(-20px) scale(0.85);
  color: var(--primary-blue);
  background-color: var(--white);
  padding: 0 var(--space-xs);
}

.form-label {
  position: absolute;
  left: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  color: var(--gray-500);
  pointer-events: none;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.form-label i {
  font-size: var(--font-size-sm);
}

/* Password Field */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: var(--space-sm);
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.password-toggle:hover {
  color: var(--gray-600);
  background-color: var(--gray-100);
}

/* Form Options */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* Custom Checkbox */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  position: relative;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.checkbox-input:checked + .checkbox-custom {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.checkbox-input:checked + .checkbox-custom::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
}

/* Forgot Password Link */
.forgot-link {
  font-size: var(--font-size-sm);
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
}

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

/* Login Button */
.login-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-light) 100%);
  border: none;
  border-radius: var(--border-radius);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.login-btn:hover {
  background: linear-gradient(135deg, var(--primary-blue-hover) 0%, var(--primary-blue) 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

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

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Divider */
.divider {
  margin: var(--space-sm) 0;
  text-align: center;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--gray-200);
}

.divider-text {
  background-color: var(--white);
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

/* Social Login */
.social-login {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gray-200);
  border-radius: 50%;
  background-color: var(--white);
  color: var(--gray-700);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.social-btn:hover {
  border-color: var(--gray-300);
  background-color: var(--gray-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.social-btn.facebook:hover {
  border-color: #4267b2;
  color: #4267b2;
  background-color: rgba(66, 103, 178, 0.1);
}

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

.social-btn.twitter:hover {
  border-color: #1da1f2;
  color: #1da1f2;
  background-color: rgba(29, 161, 242, 0.1);
}

/* Register Section */
.register-section {
  text-align: center;
  margin-bottom: var(--space-xs);
}

.register-text {
  font-size: var(--font-size-xs);
  color: var(--gray-600);
  margin-bottom: var(--space-xs);
}

.register-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background-color: var(--success);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.register-btn:hover {
  background-color: #059669;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* GDPR Links */
.gdpr-links {
  text-align: center;
  margin-bottom: var(--space-xs);
}

.gdpr-link {
  display: inline-block;
  margin: 0 var(--space-xs);
  font-size: 0.625rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: var(--transition-fast);
}

.gdpr-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

/* Footer */
.login-footer {
  text-align: center;
  padding-top: var(--space-xs);
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.login-footer p {
  font-size: 0.625rem;
  color: var(--gray-500);
  margin: 0;
}

/* ReCAPTCHA */
.recaptcha-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: var(--space-md) 0;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding: 0 var(--space-xs);
  /* Reserve space for reCAPTCHA to prevent layout shift */
  min-height: 78px;
  position: relative;
}

.recaptcha-wrapper .g-recaptcha {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 304px;
  margin: 0 auto;
  /* Use static positioning by default for mobile/tablet */
  position: static;
  transform: none;
}

/* Desktop only: Use absolute positioning for desktop */
@media (min-width: 1025px) {
  .recaptcha-wrapper .g-recaptcha {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

.recaptcha-wrapper iframe {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

/* Loading state for reCAPTCHA */
.recaptcha-wrapper::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 304px;
  height: 78px;
  background: var(--gray-50);
  border: 2px dashed var(--gray-200);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 1;
  max-width: calc(100% - 2rem);
}

.recaptcha-wrapper::after {
  content: 'Cargando reCAPTCHA...';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--font-size-xs);
  color: var(--gray-500);
  z-index: 2;
  pointer-events: none;
}

/* Hide loading state when reCAPTCHA is loaded */
.recaptcha-wrapper.loaded::before,
.recaptcha-wrapper.loaded::after {
  opacity: 0;
  visibility: hidden;
}

/* Ensure reCAPTCHA container never overflows */
.form-group .recaptcha-wrapper {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .login-card {
    max-width: 800px;
    height: 60vh;
    max-height: 420px;
    min-height: 400px;
  }
  
  .brand-section {
    padding: var(--space-sm);
  }
  
  .form-section {
    padding: var(--space-sm);
    overflow: hidden;
  }
  
  .company-logo {
    height: 60px;
    max-width: 200px;
  }
  
  .welcome-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
  }
  
  .form-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-xs);
  }
  
  .form-subtitle {
    font-size: 0.7rem;
    margin-bottom: var(--space-xs);
  }
  
  .input-wrapper {
    margin-bottom: var(--space-xs);
  }
  
  .form-input {
    height: 36px;
    font-size: var(--font-size-sm);
    padding: var(--space-xs) var(--space-sm);
  }
  
  .login-btn {
    height: 36px;
    font-size: var(--font-size-sm);
  }
  
  .social-btn {
    width: 32px;
    height: 32px;
    font-size: var(--font-size-sm);
  }
  
  .social-login {
    margin-bottom: var(--space-xs);
  }
  
  .divider {
    margin: var(--space-xs) 0;
  }
  
  .form-options {
    margin-bottom: var(--space-xs);
  }
  
  .register-section {
    margin-bottom: 0;
  }
  
  .gdpr-links {
    margin-bottom: 0;
  }
  
  .gdpr-link {
    font-size: 0.55rem;
  }
  
  .register-btn {
    font-size: 0.65rem;
    padding: 4px var(--space-xs);
  }
  
  .recaptcha-wrapper {
    margin: var(--space-xs) 0;
    overflow: hidden;
    position: relative;
    min-height: 60px;
  }
  
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.8);
    transform-origin: center;
    position: static !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Override absolute positioning for tablets */
  .recaptcha-wrapper .g-recaptcha {
    top: auto !important;
    left: auto !important;
    transform: scale(0.8) !important;
  }
}

/* Tablet Landscape - Extra compact for landscape tablets */
@media (max-width: 1024px) and (orientation: landscape) {
  .login-card {
    max-width: 700px;
    height: 85vh;
    max-height: 380px;
    min-height: 360px;
  }
  
  .brand-section {
    padding: var(--space-xs);
  }
  
  .form-section {
    padding: var(--space-xs);
  }
  
  .company-logo {
    height: 50px;
    max-width: 160px;
  }
  
  .welcome-title {
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  
  .form-title {
    font-size: 0.85rem;
    margin-bottom: var(--space-xs);
  }
  
  .form-subtitle {
    font-size: 0.65rem;
    margin-bottom: var(--space-xs);
  }
  
  .input-wrapper {
    margin-bottom: 6px;
  }
  
  .form-input {
    height: 32px;
    font-size: 0.75rem;
    padding: 6px var(--space-xs);
  }
  
  .login-btn {
    height: 32px;
    font-size: 0.75rem;
  }
  
  .social-btn {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  
  .divider {
    margin: 6px 0;
  }
  
  .form-options {
    margin-bottom: 6px;
  }
  
  .register-section {
    margin-bottom: 0;
  }
  
  .gdpr-links {
    margin-bottom: 0;
  }
  
  .gdpr-link {
    font-size: 0.5rem;
    margin: 0 2px;
  }
  
  .register-btn {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  
  .alert {
    padding: 6px;
    font-size: 0.65rem;
  }
  
  .recaptcha-wrapper {
    margin: 4px 0;
    position: relative;
    min-height: 50px;
  }
  
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.7);
    transform-origin: center;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
}

/* Tablet Portrait - Specific for portrait orientation */
@media (max-width: 1024px) and (orientation: portrait) {
  .login-card {
    max-width: 650px;
    height: 55vh;
    max-height: 400px;
    min-height: 380px;
  }
  
  .brand-section {
    padding: var(--space-xs);
  }
  
  .form-section {
    padding: var(--space-xs);
  }
  
  .company-logo {
    height: 55px;
    max-width: 180px;
  }
  
  .welcome-title {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
  }
  
  .form-title {
    font-size: 0.9rem;
    margin-bottom: var(--space-xs);
  }
  
  .form-subtitle {
    font-size: 0.65rem;
    margin-bottom: var(--space-xs);
  }
  
  .input-wrapper {
    margin-bottom: 8px;
  }
  
  .form-input {
    height: 34px;
    font-size: 0.8rem;
    padding: 8px var(--space-xs);
  }
  
  .login-btn {
    height: 34px;
    font-size: 0.8rem;
  }
  
  .social-btn {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
  }
  
  .divider {
    margin: 8px 0;
  }
  
  .form-options {
    margin-bottom: 8px;
  }
  
  .register-section {
    margin-bottom: 0;
  }
  
  .gdpr-links {
    margin-bottom: 0;
  }
  
  .gdpr-link {
    font-size: 0.5rem;
  }
  
  .register-btn {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  
  .recaptcha-wrapper {
    margin: 6px 0;
    min-height: 55px;
  }
  
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.75);
  }
}

@media (max-width: 768px) {
  .login-container {
    padding: 0;
  }
  
  .login-card {
    flex-direction: column;
    max-width: 100%;
    height: 100vh;
    max-height: none;
    min-height: 100vh;
    border-radius: 0;
  }
  
  .brand-section {
    flex: 0 0 auto;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    background: var(--white);
    color: var(--gray-900);
    text-align: center;
  }
  
  .form-section {
    flex: 1;
    padding: var(--space-md);
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .company-logo {
    height: 100px;
    filter: none;
  }
  
  .welcome-title {
    font-size: var(--font-size-xl);
    color: var(--gray-900);
    margin-bottom: var(--space-md);
  }
  
  .form-title {
    font-size: var(--font-size-lg);
  }
  
  .form-input {
    height: 48px;
  }
  
  .login-btn {
    height: 48px;
  }
  
  .social-btn {
    width: 44px;
    height: 44px;
    font-size: var(--font-size-lg);
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }
  
  .recaptcha-wrapper {
    margin: var(--space-md) 0;
    position: relative;
  }
  
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Allow scrolling and flexible layout for mobile forms */
  .login-form {
    height: auto !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    padding-bottom: var(--space-lg) !important;
  }
  
  .form-content {
    overflow: visible !important;
    justify-content: flex-start !important;
    gap: var(--space-md) !important;
    padding-bottom: var(--space-md) !important;
  }
}

@media (max-width: 640px) {
  .brand-section {
    padding: var(--space-md) var(--space-sm) var(--space-sm);
  }
  
  .form-section {
    padding: var(--space-sm);
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
  }
  
  .company-logo {
    height: 80px;
  }
  
  .welcome-title {
    font-size: var(--font-size-lg);
  }
  
  .form-title {
    font-size: var(--font-size-base);
  }
}

@media (max-width: 480px) {
  .brand-section {
    padding: var(--space-sm) var(--space-sm) var(--space-xs);
  }
  
  .form-section {
    padding: var(--space-sm);
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: flex-start;
  }
  
  .company-logo {
    height: 70px;
  }
  
  .welcome-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--space-sm);
  }
  
  .form-title {
    font-size: var(--font-size-sm);
  }
  
  .form-subtitle {
    font-size: 0.625rem;
  }
  
  .form-input {
    height: 44px;
  }
  
  .login-btn {
    height: 44px;
  }
  
  .social-btn {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }
  
  .recaptcha-wrapper {
    margin: var(--space-sm) 0;
    position: relative;
  }
  
  .recaptcha-wrapper .g-recaptcha {
    transform: scale(0.85);
    transform-origin: center;
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Allow scrolling and flexible layout for small mobile forms */
  .login-form {
    height: auto !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    padding-bottom: var(--space-xl) !important;
  }
  
  .form-content {
    overflow: visible !important;
    justify-content: flex-start !important;
    gap: var(--space-sm) !important;
    padding-bottom: var(--space-lg) !important;
  }
  
  .form-section {
    justify-content: flex-start !important;
    padding-bottom: var(--space-xl) !important;
  }
}

/* Focus Styles for Accessibility */
.form-input:focus,
.login-btn:focus,
.social-btn:focus,
.register-btn:focus,
.forgot-link:focus,
.gdpr-link:focus,
.password-toggle:focus,
.checkbox-wrapper:focus-within {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card {
  animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.fa-spin {
  animation: spin 1s linear infinite;
}

/* Error States */
.form-input.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input.error + .form-label {
  color: var(--error);
}

/* Success States */
.form-input.success {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-input.success + .form-label {
  color: var(--success);
}
