/* Authentication page styles */

/* Ensure consistent background color */
body.site-body {
  background: var(--card-bg, #f9f9f9) !important;
  color: var(--text, #222) !important;
}

body.site-body.dark-mode {
  background: var(--card, #222) !important;
  color: var(--text, #eee) !important;
}

.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 2rem 1rem;
  background: transparent;
}

.auth-card {
  background: var(--card, #fff);
  border: 1px solid var(--rule, #eee);
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.08));
}

.auth-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--text, #222);
}

.auth-header p {
  margin: 0 0 1.5rem 0;
  color: var(--muted, #666);
  line-height: 1.5;
}

.auth-error {
  background: #fed7d7;
  border: 1px solid #feb2b2;
  color: #c53030;
  padding: 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Auth content container */
.auth-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
  text-align: center;
}

/* Multi-provider authentication buttons */
.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  align-items: center;
}

.auth-provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 1rem;
  border: 2px solid;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.auth-provider-btn:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  transform: translateY(-1px);
}

.provider-icon {
  flex-shrink: 0;
}

/* Google-specific styling */
.google-login-btn {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}

.google-login-btn:hover {
  border-color: #4285f4;
}

/* Apple-specific styling */
.apple-login-btn {
  background: #000;
  color: white;
  border-color: #000;
}

.apple-login-btn:hover {
  background: #333;
  border-color: #333;
}

/* Microsoft-specific styling */
.microsoft-login-btn {
  background: #0078d4;
  color: white;
  border-color: #0078d4;
}

.microsoft-login-btn:hover {
  background: #106ebe;
  border-color: #106ebe;
}

/* Future authentication providers section */
.future-auth-providers {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule, #eee);
}

.future-auth-providers h4 {
  margin: 0 0 1rem 0;
  font-size: 0.9rem;
  color: var(--muted, #666);
  text-align: center;
  font-weight: 500;
}

.future-providers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
}

/* Future button styling (disabled state) */
.future-btn {
  opacity: 0.6;
  cursor: not-allowed !important;
  position: relative;
}

.future-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}

.future-btn .coming-soon {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b35;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Future Microsoft button */
.future-btn.microsoft-login-btn {
  background: #e6f2ff;
  color: #666;
  border-color: #ccc;
}

/* Future Apple button */
.future-btn.apple-login-btn {
  background: #f5f5f5;
  color: #666;
  border-color: #ccc;
}

/* Legacy Google button (backward compatibility) */
.google-login-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 300px;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid #dadce0;
  border-radius: 8px;
  text-decoration: none;
  color: #3c4043;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.google-login-btn:hover {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border-color: #4285f4;
}

.google-icon {
  flex-shrink: 0;
}

/* No providers message */
.no-providers {
  text-align: center;
  color: var(--muted, #666);
  font-style: italic;
  padding: 1.25rem;
  background: var(--card-bg, #f5f5f5);
  border-radius: 8px;
  border: 1px solid var(--rule, #eee);
}

.auth-benefits {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule, #eee);
  width: 100%;
}

.auth-benefits h3 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  color: var(--text, #222);
}

.auth-benefits ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--muted, #666);
}

.auth-benefits li {
  margin-bottom: 0.5rem;
}

.auth-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule, #eee);
  text-align: center;
  width: 100%;
}

.auth-note p {
  margin: 0;
  color: var(--muted, #666);
}

.auth-note a {
  color: var(--link, #0645ad);
  text-decoration: underline;
}

/* Dark mode adjustments */
body.dark-mode .auth-card {
  background: var(--card, #222);
  border-color: var(--rule, #444);
}

body.dark-mode .auth-header h1 {
  color: var(--text, #eee);
}

body.dark-mode .auth-header p {
  color: var(--muted, #aaa);
}

body.dark-mode .auth-benefits h3 {
  color: var(--text, #eee);
}

body.dark-mode .auth-benefits ul {
  color: var(--muted, #aaa);
}

body.dark-mode .auth-benefits,
body.dark-mode .auth-note {
  border-top-color: var(--rule, #444);
}

body.dark-mode .auth-note p {
  color: var(--muted, #aaa);
}

body.dark-mode .auth-note a {
  color: var(--link, #7abaff);
}

/* Dark mode support for provider buttons */
body.dark-mode .google-login-btn {
  background: var(--card, #333);
  color: var(--text, #eee);
  border-color: var(--rule, #555);
}

body.dark-mode .google-login-btn:hover {
  border-color: #4285f4;
  background: var(--card-bg, #444);
}

body.dark-mode .apple-login-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

body.dark-mode .apple-login-btn:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

body.dark-mode .no-providers {
  background: var(--card, #333);
  border-color: var(--rule, #555);
  color: var(--muted, #aaa);
}

/* Responsive design */
@media (min-width: 768px) {
  .auth-providers {
    flex-direction: row;
    gap: 1rem;
    max-width: 600px;
  }
  
  .auth-provider-btn {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  
  .auth-header h1 {
    font-size: 1.25rem;
  }
  
  .google-login-btn,
  .auth-providers {
    max-width: 100%;
  }
  
  .auth-provider-btn {
    font-size: 0.9rem;
    padding: 0.6rem 0.8rem;
  }
}
