/* =============================================================================
   TUWA THEME - MODERN LOGIN PAGE
   Clean, Professional Login Experience
   ============================================================================= */

/* Login Page Container */
.login-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--tuwa-font-family, 'Inter', sans-serif);
}

/* Login Form Card */
.login-form-container,
.login-content {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 400px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo and Branding */
.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo img {
  max-height: 50px;
  width: auto;
}

.login-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

/* Form Styling */
.login-form .form-group {
  margin-bottom: 1.5rem;
}

.login-form .form-control,
.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.login-form .form-control:focus,
.login-form input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.login-form label,
.login-form .control-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

/* Login Button */
.login-form .btn-login,
.login-form .btn-primary {
  width: 100%;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 1rem;
}

.login-form .btn-login:hover,
.login-form .btn-primary:hover {
  background: linear-gradient(135deg, #5a67d8, #6b46c1);
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Remember Me Checkbox */
.login-form .checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.login-form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
  accent-color: #667eea;
}

/* Links */
.login-form .forgot-password-link,
.login-form a {
  color: #667eea;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.login-form .forgot-password-link:hover,
.login-form a:hover {
  color: #5a67d8;
}

/* Footer Links */
.login-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

.login-footer p {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

/* Error Messages */
.login-form .alert,
.login-form .error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Success Messages */
.login-form .success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #16a34a;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Loading State */
.login-form .btn-login:disabled,
.login-form .btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.login-form .spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

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

/* Responsive Design */
@media (max-width: 480px) {
  .login-form-container,
  .login-content {
    margin: 1rem;
    padding: 2rem;
    max-width: none;
  }
  
  .login-title {
    font-size: 1.5rem;
  }
}

/* Language Selector */
.language-selector {
  text-align: center;
  margin-bottom: 1rem;
}

.language-selector select {
  padding: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: white;
}

/* Social Login Buttons (if needed) */
.social-login {
  margin-top: 1.5rem;
  text-align: center;
}

.social-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  background: white;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.social-login-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  text-decoration: none;
  color: #374151;
}

.social-login-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
}