/* Authentication Styles */

/* Auth Buttons in Header */
.auth-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.auth-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  height: auto;
}

.sign-in-btn {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.sign-in-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sign-up-btn {
  background-color: #2563eb;
  border: none;
  color: white;
}

.sign-up-btn:hover {
  background-color: #1d4ed8;
}

/* Auth Modal */
.auth-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-modal {
  background-color: #0D1117;
  border: 1px solid #30363D;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  position: relative;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.auth-modal-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-modal-logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.auth-modal h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
  color: white;
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.provider-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #30363D;
  background-color: #161B22;
  color: white;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.provider-btn:hover {
  background-color: #1F2937;
}

.provider-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #30363D;
}

.auth-divider span {
  position: relative;
  background-color: #0D1117;
  padding: 0 12px;
  color: #8B949E;
  font-size: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #c9d1d9;
  font-size: 16px;
}

.form-group input {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #30363D;
  background-color: #0D1117;
  color: white;
  font-size: 17px;
}

.forgot-password {
  display: block;
  text-align: right;
  color: #58a6ff;
  font-size: 16px;
  margin-top: 10px;
  text-decoration: none;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
}

.terms-checkbox input {
  margin-top: 3px;
}

.terms-checkbox label {
  font-size: 16px;
  color: #8B949E;
}

.terms-checkbox a {
  color: #58a6ff;
  text-decoration: none;
}

.auth-submit-btn {
  width: 100%;
  padding: 18px;
  background-color: white;
  color: #0D1117;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-bottom: 10px;
}

.auth-submit-btn:hover {
  background-color: #e6e6e6;
}

.last-used {
  text-align: right;
  font-size: 16px;
  color: #8B949E;
}

.auth-footer {
  margin-top: 28px;
  text-align: center;
  font-size: 16px;
  color: #8B949E;
}

.auth-footer a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: 500;
  margin-left: 4px;
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 480px) {
  .auth-modal {
    width: 90%;
    padding: 24px;
  }
}

/* Hide user dropdown by default until authentication state is determined */
.user-button {
    display: none !important;
}

/* Show user dropdown when user is authenticated */
.user-button.authenticated {
    display: flex !important;
}
