/* Modern Authentication Pages Styling */

/* Hide menu on auth pages - COMMENTED OUT TO SHOW MENU */
/* .auth-page #navigation {
  display: none !important;
} */



.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
}

.auth-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  max-width: 550px;
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2eca7f, #667eea);
}

.auth-header {
  text-align: center;
  margin-bottom: 30px;
}

.auth-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a2d62;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.auth-subtitle {
  color: #6c757d;
  font-size: 16px;
  margin: 0;
  font-weight: 400;
}

.social-auth-section {
  margin-bottom: 30px;
  text-align: center;
}

.social-auth-text {
  text-align: center;
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.social-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  padding: 0 10px;
}

.social-buttons .btn {
  flex: 1;
  max-width: 120px;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e9ecef;
  background: white;
  color: #495057;
  transition: all 0.3s ease;
}

.social-buttons .btn:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  transform: translateY(-1px);
}

/* Custom Google Button Styling */
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.google-btn {
  background: white;
  color: #5f6368;
  border-color: #dadce0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-btn:hover {
  background: #f8f9fa;
  border-color: #c1c1c1;
  color: #3c4043;
  text-decoration: none;
}

.google-btn:hover .google-icon {
  transform: scale(1.1);
}

.google-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-btn:active .google-icon {
  transform: scale(0.95);
}

/* Add subtle scale animation on focus */
.google-btn:focus .google-icon {
  transform: scale(1.05);
}

/* Add subtle scale animation on hover */
.google-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

/* Add subtle scale animation on focus */
.google-btn:focus {
  transform: translateY(-1px) scale(1.01);
}

/* Add subtle scale animation on active */
.google-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Add subtle scale animation on loading */
.google-btn.loading {
  transform: scale(0.98);
}

/* Add subtle scale animation on focus-visible */
.google-btn:focus-visible {
  transform: translateY(-1px) scale(1.01);
}

.google-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: all 0.2s ease;
}

.btn-text {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: 0.25px;
  transition: all 0.2s ease;
}

/* Enhanced Google Button Animations */
.google-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(66, 133, 244, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

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

/* Add subtle glow effect on hover */
.google-btn:hover {
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

/* Add subtle glow effect on focus */
.google-btn:focus {
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.3), 0 4px 12px rgba(66, 133, 244, 0.2);
}

/* Focus states for accessibility */
.google-btn:focus {
  outline: none;
}

.google-btn:focus-visible {
  outline: 2px solid #4285F4;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .google-btn {
    border-width: 3px;
    border-color: #000;
  }
  
  .google-btn:hover {
    border-color: #333;
  }
  
  .google-btn:focus {
    border-color: #0066cc;
  }
}

/* Loading state for Google button */
.google-btn.loading {
  pointer-events: none;
  opacity: 0.7;
  transform: scale(0.98);
}

.google-btn.loading .btn-text {
  opacity: 0.7;
}

.google-btn.loading .google-icon {
  animation: spin 1s linear infinite;
}

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

/* Add subtle pulse animation for loading state */
.google-btn.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(66, 133, 244, 0.1);
  border-radius: 10px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

/* Ripple effect on click */
.google-btn:active::after {
  content: '';
  position: absolute;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(66, 133, 244, 0.3);
  transform: translate(-50%, -50%);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    width: 300px;
    height: 300px;
    opacity: 0;
  }
}

/* Add subtle scale animation on click */
.google-btn:active {
  transform: translateY(0) scale(0.95);
}

.divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e9ecef;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #6c757d;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.auth-form {
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1a2d62;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-control:focus {
  outline: none;
  border-color: #2eca7f;
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 202, 127, 0.1);
}

.form-control::placeholder {
  color: #adb5bd;
}

.form-control.is-invalid {
  border-color: #dc3545;
  background: #fff5f5;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 5px;
  font-size: 13px;
  color: #dc3545;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.form-check {
  display: flex;
  align-items: center;
  margin: 0;
}

.form-check-input {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  border: 2px solid #e9ecef;
  border-radius: 4px;
  background: white;
}

.form-check-input:checked {
  background-color: #2eca7f;
  border-color: #2eca7f;
}

.form-check-label {
  font-size: 14px;
  color: #6c757d;
  cursor: pointer;
  margin: 0;
}

.forgot-password {
  color: #2eca7f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #1e9b6b;
  text-decoration: underline;
}

.terms-check {
  margin-bottom: 25px;
}

.terms-link {
  color: #2eca7f;
  text-decoration: none;
  font-weight: 500;
}

.terms-link:hover {
  text-decoration: underline;
  color: #6c757d;
}

.terms-note {
  margin: 20px 0;
  padding: 15px;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2eca7f;
}

.terms-note p {
  margin: 0;
  line-height: 1.5;
}

.terms-note .terms-link {
  color: #2eca7f;
  text-decoration: none;
  font-weight: 500;
}

.terms-note .terms-link:hover {
  text-decoration: underline;
  color: #1e9b6b;
}

/* Password toggle functionality */
.password-field-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  transition: color 0.3s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: #2eca7f;
}

.password-toggle:focus {
  outline: none;
  color: #2eca7f;
}

.password-toggle i {
  font-size: 16px;
  line-height: 1;
}

/* Adjust password input padding to make room for the toggle button */
.password-field-wrapper .form-control {
  padding-right: 40px;
}

.auth-submit {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #2eca7f 0%, #1e9b6b 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.auth-submit::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: left 0.5s;
}

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

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(46, 202, 127, 0.3);
}

.auth-submit:active {
  transform: translateY(0);
}

.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.auth-footer-text {
  color: #6c757d;
  font-size: 14px;
  margin: 0;
}

.auth-link {
  color: #2eca7f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.auth-link:hover {
  color: #1e9b6b;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 480px) {
  .auth-container {
    padding: 10px;
  }
  
  .auth-card {
    padding: 30px 20px;
    border-radius: 15px;
  }
  
  .auth-title {
    font-size: 24px;
  }
  
  .auth-subtitle {
    font-size: 14px;
  }
  
  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .social-buttons {
    flex-direction: column;
  }
  
  .social-buttons .btn {
    max-width: none;
  }
  
  .social-btn {
    max-width: none;
    padding: 16px 20px; /* Larger touch target for mobile */
  }
  
  .google-icon {
    width: 22px; /* Slightly larger icon for mobile */
    height: 22px;
  }
  
  .btn-text {
    font-size: 15px; /* Slightly larger text for mobile */
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .google-btn:hover {
    transform: none; /* Disable hover effects on touch devices */
  }
  
  .google-btn:active {
    transform: scale(0.98); /* Add touch feedback */
  }
}

/* Animation for form elements */
.form-control,
.auth-submit,
.social-buttons .btn {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Loading state for submit button */
.auth-submit.loading {
  pointer-events: none;
  opacity: 0.7;
}

.auth-submit.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  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); }
}

/* Success/Error message styling */
.alert {
  border-radius: 10px;
  border: none;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

/* Success icon styling */
.success-icon {
  text-align: center;
  margin-bottom: 20px;
}

.success-icon i {
  font-size: 48px;
  color: #2eca7f;
  animation: scaleIn 0.6s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Info box styling */
.auth-content {
  margin-bottom: 25px;
}

.info-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #2eca7f;
}

.info-text {
  color: #6c757d;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Messages container */
.messages-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1050;
  max-width: 400px;
}

.messages-container .alert {
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Auth actions for logout page */
.auth-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.auth-actions .auth-submit,
.auth-actions .auth-cancel {
  flex: 1;
  padding: 14px 20px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.auth-actions .auth-submit {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  border: none;
  color: white;
}

.auth-actions .auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

.auth-actions .auth-cancel {
  background: white;
  border: 2px solid #e9ecef;
  color: #6c757d;
}

.auth-actions .auth-cancel:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: #495057;
  transform: translateY(-2px);
  text-decoration: none;
} 