/* © 2025 Authenti. All Rights Reserved. */

:root {
  --primary-color: #bd7bff;
  --primary-hover: #a753fb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --background-color: #f3f4f6;
  --card-background: #ffffff;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --font-family: "Inter", sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--background-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.auth-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  box-sizing: border-box;
}

.background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(to bottom, var(--primary-color), #bd7bff);
  z-index: -1;
}

.auth-container {
  position: relative;
  background: var(--card-background);
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 48px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  margin-bottom: 32px; /* Add margin to separate from other containers/footer */
}

/* Hide all but the first container initially */
.auth-container:not(:first-of-type) {
  display: none;
}

.icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: var(--primary-color);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.icon-wrapper.success {
  background-color: #d1fae5;
  color: var(--success-color);
}

h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 12px;
}

.description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 320px;
}

.form-content {
  width: 100%;
  display: flex;
  flex-direction: column;
}

input {
  width: 100%;
  padding: 14px;
  margin-bottom: 18px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: var(--font-family);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
  outline: none;
}

.cta-button {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  background-color: var(--primary-color);
  color: white;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-button:disabled {
  background-color: #d1d5db;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.message-text {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  height: 1.2em; /* Reserve space */
}

.message-text.success {
  color: var(--success-color);
}

.message-text.error {
  color: var(--error-color);
}

.back-link {
  display: block;
  margin-top: 24px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

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

.subscription-footer {
  font-size: 14px;
  color: #d1d5db;
}

.subscription-footer p {
  margin: 0;
}

@media (max-width: 480px) {
  .auth-container {
    padding: 24px;
  }
  h2 {
    font-size: 24px;
  }
  .description {
    font-size: 14px;
  }
}

/* © 2025 Authenti. All Rights Reserved. */
