/* Authentication Styles */
:root {
  --primary-color: #4285f4;
  --primary-dark: #3367d6;
  --primary-rgb: 66, 133, 244;
  --text-color: #333;
  --text-light: #757575;
  --border-color: #e0e0e0;
  --background-color: #fff;
  --input-bg: #f5f5f5;
  --error-color: #d32f2f;
  --success-color: #2e7d32;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
}

.auth-container {
  display: flex;
  align-items: center;
}

.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-button {
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-button {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.login-button:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
}

.signup-button {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: white;
}

.signup-button:hover {
  background-color: var(--primary-dark);
}

.signout-button {
  background-color: transparent;
  border: 1px solid var(--error-color);
  color: var(--error-color);
  margin-left: 10px;
}

.signout-button:hover {
  background-color: rgba(211, 47, 47, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 500;
  color: var(--text-color);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  overflow: auto;
}

.modal-content {
  background-color: var(--background-color);
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-light);
  cursor: pointer;
}

.close:hover {
  color: var(--text-color);
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.auth-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
}

.auth-tab.active {
  color: var(--primary-color);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Auth Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
  font-size: 14px;
}

.form-group input {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--input-bg);
  color: var(--text-color);
  font-size: 16px;
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.auth-submit {
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.auth-submit:hover {
  background-color: var(--primary-dark);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 15px 0;
  color: var(--text-light);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
  padding: 0 10px;
  font-size: 14px;
}

.google-sign-in {
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  width: 100%;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  z-index: 1;
  background-color: white;
  color: #444;
  text-align: center;

  /* Blue gradient border */
  background-image: 
    linear-gradient(white, white), 
    linear-gradient(90deg, #077cff, #5136db);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;

  /* Shadow */
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.2);
  @keyframes pulse-glow {
    0% {
      box-shadow: 0 0 0 rgba(0, 132, 255, 0.2);
    }
    50% {
      box-shadow: 0 0 12px rgba(0, 132, 255, 0.4);
    }
    100% {
      box-shadow: 0 0 0 rgba(0, 132, 255, 0.2);
    }
  }
}

.google-sign-in.primary {
  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px;
  width: 100%;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  position: relative;
  z-index: 1;
  background-color: white;
  color: #444;
  text-align: center;

  /* Blue gradient border */
  background-image: 
    linear-gradient(white, white), 
    linear-gradient(90deg, #077cff, #5136db);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 1px solid transparent;

  /* Shadow */
  box-shadow: 0 4px 12px rgba(0, 132, 255, 0.2);
  @keyframes pulse-glow {
    0% {
      box-shadow: 0 0 0 rgba(0, 132, 255, 0.2);
    }
    50% {
      box-shadow: 0 0 12px rgba(0, 132, 255, 0.4);
    }
    100% {
      box-shadow: 0 0 0 rgba(0, 132, 255, 0.2);
    }
  }
}

.google-sign-in:hover {
  background-color: #f9f9f9;
  box-shadow: 0 6px 18px rgba(0, 132, 255, 0.3);
}

.google-sign-in.primary:hover {
  background-color: #f9f9f9;
  box-shadow: 0 6px 18px rgba(0, 132, 255, 0.3);
}

.google-sign-in img {
  width: 18px;
  height: 18px;
}

.auth-error {
  display: none;
  background-color: #ffebee;
  color: var(--error-color);
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}

.auth-message {
  display: none;
  background-color: #e8f5e9;
  color: var(--success-color);
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Email Verification Modal Styles */
.verification-content {
  text-align: center;
  padding: 20px 0;
}

.verification-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.verification-content h2 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.verification-description {
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 25px;
  font-size: 16px;
}

.verification-description strong {
  color: var(--primary-color);
}

.verification-status {
  margin-bottom: 25px;
}

.verification-checking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-light);
}

.verification-checking .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.verification-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--success-color);
  font-weight: 500;
}

.verification-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.auth-submit.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.auth-submit.secondary:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
}

.verification-note {
  color: var(--text-light);
  font-size: 13px;
  line-height: 1.4;
}

/* Forgot Password Styles */
.forgot-password-container {
  text-align: right;
  margin-top: -5px;
  margin-bottom: 15px;
}

.forgot-password-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Password Reset Modal Styles */
.password-reset-content {
  text-align: center;
  padding: 20px 0;
}

.password-reset-icon {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.password-reset-content h2 {
  color: var(--text-color);
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 600;
}

.password-reset-description {
  color: var(--text-color);
  line-height: 1.5;
  margin-bottom: 25px;
  font-size: 16px;
}

.password-reset-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .verification-actions {
    flex-direction: column;
  }
  
  .verification-content {
    padding: 10px 0;
  }
  
  .modal-content {
    margin: 5% auto;
    padding: 20px;
  }
}
