/* src/styles/AuthPages.css */

/* Auth container */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #4CAF50, #2196F3);
  padding: 1rem;
}

/* Auth card */
.auth-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 32rem;
  overflow: hidden;
}

/* Auth header */
.auth-header {
  padding: 1.5rem 1.5rem 1rem;
  text-align: center;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: #666;
  font-size: 0.875rem;
}

/* Auth form */
.auth-form {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
  width: 95%;
  padding: 0.625rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.auth-form input.input-error {
  border-color: #f44336;
}

/* Checkbox container */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-container input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
}

.checkbox-container label {
  margin-bottom: 0;
  cursor: pointer;
}

/* Flex between (for password row) */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-link {
  font-size: 0.75rem;
  color: #4CAF50;
  text-decoration: none;
}

.form-link:hover {
  text-decoration: underline;
}

/* Error text */
.text-error {
  color: #f44336;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Auth submit button */
.auth-submit {
  background-color: #4CAF50;
  color: white;
  font-weight: 500;
  padding: 0.625rem 1rem;
  border-radius: 0.375rem;
  margin-top: 0.5rem;
  transition: background-color 0.2s;
}

.auth-submit:hover:not(:disabled) {
  background-color: #388E3C;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Link at the bottom */
.auth-link {
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid #eee;
}

.auth-link p {
  font-size: 0.875rem;
  color: #666;
}

.auth-link a {
  color: #4CAF50;
  font-weight: 500;
  text-decoration: none;
}

.auth-link a:hover {
  text-decoration: underline;
}

/* Demo credentials section */
.auth-demo {
  padding: 1rem 1.5rem;
  text-align: center;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
}

.auth-demo p {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.demo-boxes {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.demo-box {
  background-color: white;
  border: 1px solid #eee;
  border-radius: 0.375rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #666;
}

.demo-box p {
  margin: 0.25rem 0;
}

.demo-box strong {
  color: #333;
}

/* Toast container */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 24rem;
}

/* Toast component */
.toast {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  color: white;
  animation: slideIn 0.3s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-icon {
  flex-shrink: 0;
  margin-right: 0.75rem;
}

.toast-message {
  flex-grow: 1;
  font-size: 0.875rem;
}

.toast-close {
  flex-shrink: 0;
  margin-left: 0.75rem;
  background: none;
  border: none;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  padding: 0.25rem;
}

.toast-close:hover {
  opacity: 1;
}

/* Account type selection buttons */
.account-type-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.account-type-button {
  padding: 0.5rem 1rem;
  text-align: center;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.account-type-button.active {
  background-color: #4CAF50;
  color: white;
}

.account-type-button:not(.active) {
  background-color: #f1f1f1;
  color: #666;
}

.account-type-button:not(.active):hover {
  background-color: #e5e5e5;
}

.account-type-info {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

.password-info {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
}

/* Steps progress */
.steps-progress {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 0.75rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: #ddd;
  z-index: 0;
}

.step-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #ddd;
  color: #fff;
  border-radius: 50%;
  font-size: 0.75rem;
  position: relative;
  z-index: 1;
}

.step.active .step-circle {
  background-color: #4CAF50;
}

.step.completed .step-circle {
  background-color: #4CAF50;
}

.step-label {
  font-size: 0.75rem;
  color: #666;
  margin-top: 0.25rem;
}

.step.active .step-label {
  color: #4CAF50;
  font-weight: 500;
}

/* Success message container */
.success-container {
  text-align: center;
  padding: 1.5rem 1rem;
}

.success-icon {
  color: #4CAF50;
  margin-bottom: 1rem;
}

.success-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.success-message {
  color: #666;
  margin-bottom: 1.5rem;
}

.success-email {
  font-weight: 500;
  color: #333;
}

/* Email verification specific */
.verification-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.verification-spinner {
  margin-bottom: 1rem;
}

.verification-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
}

.verification-message {
  color: #666;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Animation for spinner */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.green-button {
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  transition: all 0.2s ease;
}

.layout-logo {
  display: flex;
  align-items: center;
  margin-left: 20px;
  text-decoration: none;
}

.logo-text {
  font-family: Arial;
  font-size: 20px;
  font-weight: bold;
}

.logo-text .fit {
  margin-left: 2px;
  color: white;
}

.logo-text .hub {
  margin-left: 1px;
  color: #e1febb;
}

/* Terms link styling */
.terms-link {
  color: #4CAF50;
  text-decoration: underline;
  font-weight: 500;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.terms-link:hover {
  color: #2E7D32;
}