/* Auth Component Styles */

/* Common Styles */
.auth-container {
  max-width: 480px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-container,
.signup-container,
.profile-container {
  width: 100%;
}

h2 {
  margin-bottom: 1.5rem;
  color: #353038;
  text-align: center;
}

.error-message {
  background-color: #ffebee;
  color: #d32f2f;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: #353038;
  font-weight: 500;
}

input,
select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

button {
  width: 100%;
  padding: 0.75rem;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #4f46e5;
}

button:disabled {
  background-color: #a5a6f6;
  cursor: not-allowed;
}

small {
  display: block;
  margin-top: 0.25rem;
  color: #71625b;
  font-size: 0.8rem;
}

.switch-view {
  margin-top: 1.5rem;
  text-align: center;
  color: #71625b;
}

.switch-view button {
  width: auto;
  padding: 0;
  background-color: transparent;
  color: #6366f1;
  text-decoration: underline;
  font-weight: 500;
}

.switch-view button:hover {
  color: #4f46e5;
  background-color: transparent;
}

/* Auth Links Styles */
.auth-links {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-links .switch-view,
.auth-links .forgot-password-link {
  margin: 0.75rem 0;
  text-align: center;
  color: #71625b;
}

.auth-links .forgot-password-link a {
  color: #6366f1;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.3s;
}

.auth-links .forgot-password-link a:hover {
  color: #4f46e5;
}

/* Forgot Password Specific Styles */
.forgot-password-container {
  width: 100%;
}

.forgot-password-description {
  margin-bottom: 1.5rem;
  text-align: center;
  color: #71625b;
  line-height: 1.5;
}

.back-to-login-btn {
  margin-top: 1rem;
  background-color: #6b7280;
}

.back-to-login-btn:hover {
  background-color: #4b5563;
}

/* Profile Specific Styles */
.membership-badge {
  text-align: center;
  margin-bottom: 1.5rem;
}

.premium-badge,
.free-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
}

.premium-badge {
  background-color: #fef6e6;
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.free-badge {
  background-color: #e6e6e6;
  color: #4b5563;
  border: 1px solid #9ca3af;
}

.user-info {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.user-info p {
  margin-bottom: 0.5rem;
}

.user-info strong {
  color: #353038;
}

.upgrade-section {
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.upgrade-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: #353038;
}

.upgrade-section ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.upgrade-section li {
  margin-bottom: 0.5rem;
}

.upgrade-info {
  font-size: 0.9rem;
  color: #71625b;
  font-style: italic;
}

.logout-button {
  background-color: #ef4444;
}

.logout-button:hover {
  background-color: #dc2626;
}

/* Confirmation message styles */
.confirmation-message {
  text-align: center;
  padding: 2rem 1rem;
}

.confirmation-message p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #353038;
}

.primary-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.primary-button:hover {
  background-color: #4f46e5;
}

/* Loading state */
.loading {
  text-align: center;
  padding: 2rem;
  color: #71625b;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .auth-container {
    max-width: 100%;
    margin: 1rem;
    padding: 1.5rem;
  }
}
