/* ==========================================================================
   Login Page (login.html) - Specific Styles
   ========================================================================== */

/* Page Layout */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/webp_images/img5.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
}

/* Main Container */
.login-container {
  max-width: 400px;
  width: 100%;
  background: var(--primary-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xxl);
  text-align: center;
  position: relative;
  z-index: 2;
}

/* Header Section */
.login-header {
  margin-bottom: var(--space-xl);
}

.logo {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
}

.login-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Form Section */
.login-form {
  margin-bottom: var(--space-xl);
}

.form-group {
  margin-bottom: var(--space-lg);
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: var(--space-md);
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(191, 44, 156, 0.1);
  outline: none;
}

.email-input {
  text-align: center;
  font-size: 1.1rem;
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.submit-btn.loading {
  pointer-events: none;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Info Section */
.login-info {
  background: var(--primary-alt);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
}

.login-info h4 {
  color: var(--secondary-color);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.login-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.login-info li {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.login-info li:last-child {
  margin-bottom: 0;
}

.login-info i {
  color: var(--success-color);
  margin-right: var(--space-sm);
  width: 16px;
  text-align: center;
}

/* Success/Error Messages */
.message {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  display: none;
}

.message.show {
  display: block;
  animation: fadeIn 0.5s ease-out;
}

.message.success {
  background: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.2);
}

.message.error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger-color);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

.message i {
  margin-right: var(--space-sm);
}

/* Footer */
.login-footer {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-lg);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-footer a {
  color: var(--secondary-color);
  font-weight: 500;
}

/* Alternative Actions */
.alt-actions {
  margin-top: var(--space-lg);
}

.alt-actions a {
  display: inline-block;
  margin: 0 var(--space-sm);
  color: var(--secondary-color);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.alt-actions a:hover {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 576px) {
  .login-page {
    padding: var(--space-md);
  }
  
  .login-container {
    padding: var(--space-lg);
  }
  
  .login-title {
    font-size: 1.75rem;
  }
  
  .logo {
    width: 60px;
    height: 60px;
  }
}
