/* Professional Login Form Styles */

/* Form Container Styling */
.auth-container {
  background: white;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.login-box {
  width: 100%;
}

/* Form Group Styling */
.left-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Label Styling */
.left-content label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: block;
}

/* Input Field Styling */
.left-content input[type="text"],
.left-content input[type="password"],
.left-content input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1.5;
  color: #1f2937;
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
  outline: none;
  box-sizing: border-box;
}

.left-content input[type="text"]:focus,
.left-content input[type="password"]:focus,
.left-content input[type="email"]:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
}

.left-content input[type="text"]:hover,
.left-content input[type="password"]:hover,
.left-content input[type="email"]:hover {
  border-color: #d1d5db;
}

/* Show Password Container */
.login-show-password-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.login-show-password-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.login-show-password-container label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  margin: 0;
  user-select: none;
}

/* Submit Button Container */
.login-submit-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

/* Submit Button Styling */
.submit-button {
  width: 100%;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  outline: none;
  position: relative;
  overflow: hidden;
}

.submit-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.submit-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(59, 130, 246, 0.3);
}

.submit-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-button:disabled:hover {
  background: #9ca3af;
  transform: none;
  box-shadow: none;
}

/* Forgot Password Button */
.login-forgot-password {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.login-forgot-password button {
  background: none;
  border: none;
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease-in-out;
  padding: 0;
}

.login-forgot-password button:hover {
  color: #1d4ed8;
}

/* Error Message Styling */
.message.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Auth Footer Text */
.auth p {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

/* Responsive Design */
@media (max-width: 640px) {
  .auth-container {
    padding: 2rem 1.5rem;
    margin: 1rem;
    max-width: none;
    width: calc(100% - 2rem);
  }
  
  .left-content {
    gap: 1.25rem;
  }
  
  .left-content input[type="text"],
  .left-content input[type="password"],
  .left-content input[type="email"] {
    padding: 0.75rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  .submit-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1.5rem 1rem;
  }
  
  .auth-title {
    font-size: 1.5rem;
  }
  
  .auth-subtitle {
    font-size: 0.875rem;
  }
}

/* Enhanced Focus States for Accessibility */
.left-content input[type="text"]:focus-visible,
.left-content input[type="password"]:focus-visible,
.left-content input[type="email"]:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.submit-button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.login-show-password-container input[type="checkbox"]:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading State Animation */
.submit-button:disabled::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

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

/* Improved Container Layout */
.main-content {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

/* Enhanced Auth Header */
.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.auth-subtitle {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 400;
}
