/* Modern Login Layout Styles - Maintaining existing card structure */

/* Header Section */
.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.5rem 0;
}

.login-subtitle {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.4;
}

.login-parkrun-count {
  color: var(--color);
  font-weight: 600;
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Forgot Password */
.forgot-password {
  text-align: left;
  margin-bottom: 1rem;
}

.forgot-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--color);
}

/* Separator */
.separator {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--foreground);
}

.separator span {
  background: var(--foreground);
  color: var(--text-muted);
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  z-index: 1;
}

/* Social Login Buttons */
.social-login {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.social-btn {
  flex: 1;
  padding: 0.75rem 1rem;
  background: var(--background);
  border: 1px solid var(--foreground);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.social-btn:hover:not(.disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.social-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--foreground);
  color: var(--text-muted);
}

.social-btn i,
.social-btn svg {
  font-size: 1.125rem;
}

/* Google Button - Brand Colors */
.google-btn.active {
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #3c4043;
}

.google-btn.active:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.google-btn.active .google-icon {
  width: 20px;
  height: 20px;
}

.google-btn.disabled .google-icon {
  width: 20px;
  height: 20px;
  filter: grayscale(1);
  opacity: 0.6;
}

/* Apple Button - Brand Colors */
.apple-btn {
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
}

.apple-btn i {
  color: #ffffff;
}

.apple-btn.disabled {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--text-muted);
}

.apple-btn.disabled i {
  color: var(--text-muted);
}

/* X (Twitter) Button - Brand Colors */
.x-btn {
  background: #000000;
  border: 1px solid #000000;
  color: #ffffff;
}

.x-btn i {
  color: #ffffff;
}

.x-btn.disabled {
  background: var(--foreground);
  border-color: var(--foreground);
  color: var(--text-muted);
}

.x-btn.disabled i {
  color: var(--text-muted);
}

/* Sign Up Link Container */
.signup-link-container {
  text-align: center;
  margin-top: 1.5rem;
}

.signup-text {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.signup-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  margin-left: 0.25rem;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: var(--color);
}

/* Forgot Password */
.forgot-password-card {
  width: min(92vw, 640px);
}

.auth-page-content.forgot-password-page-content {
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem 1rem 2.5rem;
  min-height: calc(100vh - 64px);
}

.forgot-password-form {
  gap: 1.25rem;
}

.reset-password-card {
  width: min(92vw, 640px);
}

.auth-page-content.reset-password-page-content {
  justify-content: center;
  align-items: flex-start;
  padding: 0.5rem 1rem 2.5rem;
  min-height: calc(100vh - 64px);
}

.reset-password-form {
  gap: 1.25rem;
}

.readonly-input input[readonly] {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text-muted);
  cursor: default;
}

.readonly-input label {
  color: var(--text-muted);
}

.auth-helper-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.auth-helper-text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-title {
    font-size: 1.75rem;
  }

  .social-login {
    flex-direction: column;
    gap: 0.75rem;
  }

  .social-btn {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .login-title {
    font-size: 1.5rem;
  }

  .login-form {
    gap: 1.25rem;
  }

  .auth-page-content.forgot-password-page-content {
    padding: 0.25rem 0.75rem 1.5rem;
  }

  .auth-page-content.reset-password-page-content {
    padding: 0.25rem 0.75rem 1.5rem;
  }

  .auth-helper-text {
    font-size: 0.875rem;
  }

  .social-btn {
    padding: 0.875rem 1rem;
  }
}
