/* Login Specific Styles */
.login-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
  background: #ffffff;
}

.login-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Main Container with Glass Effect */
.login-main-container {
  display: flex;
  align-items: stretch;
  max-width: 800px;
  width: 100%;
  min-height: 500px;
  position: relative;
  z-index: 10;
  background: #ffffff;
}

/* Logo Section - Desktop */
.login-logo-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.login-logo {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s ease;
}

.login-logo:hover {
  transform: scale(1.05);
}

/* Separator Line - Desktop */
.separator-line {
  width: 2px;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 10%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0.3) 90%, 
    transparent 100%
  );
  margin: 2rem 0;
}

/* Form Section */
.login-form-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3rem;
  justify-content: center;
}

.login-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 2rem 0;
  text-align: center;
}

/* Mobile Elements - Hidden on Desktop */
.login-logo-mobile {
  display: none;
  text-align: center;
  margin-bottom: 1rem;
}

.login-logo-mobile-img {
    width: 140px;
  }

  .register-link-text {
    font-size: 0.95rem;
  }

.separator-line-mobile {
  display: none;
  height: 2px;
  background: linear-gradient(to right, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 10%, 
    rgba(255, 255, 255, 0.6) 50%, 
    rgba(255, 255, 255, 0.3) 90%, 
    transparent 100%
  );
  margin: 1rem 0 2rem 0;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 500;
  color: var(--text-white);
  font-size: 0.875rem;
}

.form-input {
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  font-size: 1rem;
  transition: var(--transition-medium);
  backdrop-filter: blur(10px);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(229, 202, 16, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

/* Submit Button */
.login-submit-button {
  width: 100%;
  padding: 0.8rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  margin-top: 0.5rem;
}

.login-submit-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 108, 14, 0.4);
}

.login-submit-button:disabled {
   opacity: 0.7;
   cursor: not-allowed;
 }

 .divider-or {
   display: flex;
   align-items: center;
   gap: 1rem;
   margin: 0.5rem 0;
 }

 .divider-or::before,
 .divider-or::after {
   content: "";
   flex: 1;
   height: 1px;
   background: rgba(255, 255, 255, 0.2);
 }

 .divider-or span {
   color: rgba(255, 255, 255, 0.5);
   font-size: 0.875rem;
   text-transform: uppercase;
 }

 .login-google-button {
   width: 100%;
   padding: 0.8rem 1.5rem;
   font-size: 1rem;
   font-weight: 500;
   border-radius: var(--radius-md);
   transition: all var(--transition-medium);
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 0.75rem;
   background: #ffffff;
   color: #374151;
   border: 1px solid #d1d5db;
   cursor: pointer;
 }

 .login-google-button:hover {
   background: #f9fafb;
   transform: translateY(-2px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
 }

 .login-google-button:disabled {
   opacity: 0.7;
   cursor: not-allowed;
 }

 .login-google-button .google-icon {
   flex-shrink: 0;
 }

/* Loading state */
.login-submit-button.loading .button-text {
  opacity: 0;
}

.login-submit-button.loading .button-loader {
  display: flex !important;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.button-loader .spinner {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* Footer Links */
.login-footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-top: 1rem;
}

.forgot-password {
  color: var(--color-accent);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.forgot-password:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

.register-link {
  font-size: 0.9rem;
}

.register-link-text {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-fast);
}

.register-link-text:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

/* Back Button - Desktop */
.back-button-desktop {
  margin-top: auto;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  align-self: flex-start;
}

/* Glass Button Style */
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  backdrop-filter: blur(10px);
  transition: var(--transition-medium);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal-content {
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: modalSlideIn 0.3s ease-out;
}

.modal-title {
  color: var(--text-white);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.modal-message {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Form Validation States */
.form-input.invalid {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.form-input.invalid:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

/* ============================================
   LOGIN MOBILE STYLES (up to 768px)
   Simple white design like goh-gym.com.ar
   Single column layout
   ============================================ */
@media (max-width: 768px) {
  .login-container.bg-standard {
    background: #ffffff;
    min-height: 100vh;
  }

  .login-content {
    padding: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  /* Main Container - Single Column */
  .login-main-container.glass-card {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    padding: 3rem 1.5rem 2rem 1.5rem;
    min-height: auto;
    width: 100%;
  }

  /* Hide ALL desktop elements */
  .login-logo-section,
  .separator-line,
  .back-button-desktop,
  .separator-line-mobile {
    display: none !important;
  }

  /* Mobile Logo - Centered at top */
  .login-logo-mobile {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
  }

  .login-logo-mobile-img {
    width: 180px;
    height: auto;
  }

  /* Form Section - Full width single column */
  .login-form-section {
    width: 100%;
    max-width: 360px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
    text-shadow: none;
  }

  /* Form Styles - White theme */
  .login-form {
    width: 100%;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .login-form .form-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.875rem;
    text-align: left;
    width: 100%;
  }

  .form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
  }

  .form-input::placeholder {
    color: #9ca3af;
  }

  .form-input:focus {
    outline: none;
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
    background: #ffffff;
  }

  /* Remember checkbox - Full width row */
  .login-form #remember-me-group {
    flex-direction: row;
    align-items: center;
    margin-top: -4px;
    margin-bottom: 0.5rem;
  }

  .login-form #remember-me-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #6b7280;
  }

  .login-form #remember-me-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #f97316;
    flex-shrink: 0;
  }

  /* Submit Button - Full width */
  .login-submit-button {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    border: none;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  }

  .login-submit-button:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  }

  .login-submit-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }

  /* Divider OR - Mobile */
  .divider-or {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.25rem 0;
    width: 100%;
  }

  .divider-or::before,
  .divider-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
  }

  .divider-or span {
    color: #9ca3af;
    font-size: 0.75rem;
    text-transform: uppercase;
  }

  /* Google Button - Mobile */
  .login-google-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .login-google-button:hover:not(:disabled) {
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .login-google-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
  }

  .login-google-button .google-icon {
    flex-shrink: 0;
  }

  /* Footer Links - Below button */
  .login-footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    width: 100%;
  }

  .forgot-password {
    color: #f97316;
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
  }

  .forgot-password:hover {
    color: #ea580c;
    text-decoration: underline;
  }

  .register-link {
    font-size: 1rem;
    color: #6b7280;
  }

  .register-link-text {
    color: #f97316;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
  }

  .register-link-text:hover {
    color: #ea580c;
    text-decoration: underline;
  }

  /* System Credit - Bottom centered */
  .system-credit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    width: 100%;
  }

  .system-credit hr {
    display: none;
  }

  .system-credit p {
    font-size: 0.75rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .system-credit a {
    color: #f97316;
    text-decoration: none;
  }

  .system-credit #goh-logo {
    height: 32px !important;
    width: auto;
  }

  /* Success/Error Messages - Full width */
  .logout-success-message,
  .cache-cleared-message {
    background: #ffffff !important;
    border-radius: 10px;
    padding: 1rem !important;
    margin-bottom: 1.5rem;
    width: 100%;
    text-align: center;
    font-size: 0.875rem;
    box-sizing: border-box;
  }

  .logout-success-message {
    color: #059669 !important;
    border: 1px solid #d1fae5 !important;
    background: #f0fdf4 !important;
  }

  .cache-cleared-message {
    color: #2563eb !important;
    border: 1px solid #dbeafe !important;
    background: #eff6ff !important;
  }

  /* Modal - Mobile centered */
  .modal-overlay {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
  }

  .modal-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    max-width: 340px;
    width: 90%;
    margin: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
  }

  .modal-title {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
  }

  .modal-message {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .modal-content .form-group {
    margin-bottom: 1rem;
  }

  .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .modal-actions .btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    font-size: 1rem;
  }

  .btn-outline {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
  }

  .btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
  }

  .btn-primary {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    border: none;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
  }

  .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
  }
}

@media (max-width: 480px) {
  .login-content {
    padding: 0;
  }

  .login-main-container {
    padding: 2.5rem 1.25rem 2rem 1.25rem;
  }

  .login-logo-mobile-img {
    width: 160px;
  }

  .login-title {
    font-size: 1.3rem;
  }

  .form-input {
    font-size: 16px; /* Prevent zoom on iOS */
    padding: 0.875rem;
  }

  .form-label {
    font-size: 0.8rem;
  }

  .login-footer-links {
    gap: 0.5rem;
    padding-top: 1.25rem;
    margin-top: 0.75rem;
  }

  .forgot-password,
  .register-link {
    font-size: 0.8rem;
  }

  .modal-content {
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.1rem;
  }
}

/* Animations */
.login-main-container {
  animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover Effects */
.login-main-container:hover {
  transform: translateY(-2px);
  transition: transform var(--transition-medium);
}

/* Focus States for Accessibility */
.form-input:focus,
.login-submit-button:focus,
.btn-glass:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .login-main-container,
  .modal-content {
    animation: none;
  }
  
  .login-main-container:hover {
    transform: none;
  }
}
