/* ─────────────────────────────────────────────────────────────────────────────
   auth.css — ElSou9 Register / Login pages
   ───────────────────────────────────────────────────────────────────────────── */

/* ─── Page & Card ──────────────────────────────────────────────────────────── */

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: "Inter", sans-serif;
  color: #1f2937;
  position: relative;
  overflow: hidden;
  background: #f0f4ff;
}

.card {
  position: relative;
  z-index: 10;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 36px 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
}

/* ─── Animated Circles ─────────────────────────────────────────────────────── */

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
  z-index: 1;
  animation-name: float;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.circle1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00b4e9 0%, #0093c4 50%, transparent 70%);
  top: -100px;
  left: -150px;
  animation-duration: 25s;
}

.circle2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #00d4ff 0%, #00a3c4 50%, transparent 70%);
  top: 50px;
  right: -100px;
  animation-duration: 30s;
}

.circle3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #34a4b3 0%, #0077a3 50%, transparent 80%);
  bottom: -150px;
  left: -200px;
  animation-duration: 35s;
}

.circle4 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, #0f172a 0%, #1e3a8a 50%, transparent 70%);
  top: 20%;
  left: 60%;
  animation-duration: 28s;
}

.circle5 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #22c55e 0%, #10b981 50%, transparent 75%);
  bottom: 10%;
  right: 15%;
  animation-duration: 32s;
}

.circle6 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #facc15 0%, #f59e0b 50%, transparent 75%);
  top: 40%;
  left: -100px;
  animation-duration: 40s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(50px, -50px) rotate(180deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

/* ─── Logo ─────────────────────────────────────────────────────────────────── */

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logoIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #00b4e9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logoText {
  font-size: 20px;
  font-weight: 800;
  color: #005f73;
}

/* ─── Progress Steps ───────────────────────────────────────────────────────── */

.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.progressStep {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.progressLine {
  width: 32px;
  height: 2px;
  background: #e2e8f0;
}

/* ─── Form ─────────────────────────────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 22px;
  font-weight: 800;
  color: #005f73;
  margin-bottom: 6px;
  margin-top: 0;
}

.subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 22px;
  margin-top: 0;
}

/* ─── Input Field ──────────────────────────────────────────────────────────── */

.inputField {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  color: #005f73;
  box-sizing: border-box;
  transition: border-color 0.15s;
  background: #fff;
}

.inputField:focus {
  border-color: #00b4e9;
}

/* ─── Subdomain row ────────────────────────────────────────────────────────── */

.subdomainRow {
  display: flex;
  align-items: stretch;
}

.subdomainSuffix {
  padding: 10px 14px;
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.hint {
  font-size: 12px;
  margin-top: 5px;
}

/* ─── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  background-color: color-mix(in srgb, #00b4e9 10%, transparent);
  color: #00b4e9;
  border: none;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
  width: 100%;
}

.btn:hover:not(:disabled) {
  background-color: color-mix(in srgb, #00b4e9 18%, transparent);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btnSecondary {
  background: #fff;
  color: #00b4e9;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s;
}

.btnSecondary:hover {
  background: #f8fafc;
}

/* ─── Links ────────────────────────────────────────────────────────────────── */

.loginLink {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
}

.link {
  color: #00b4e9;
  font-weight: 600;
  text-decoration: none;
}

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

/* ─── Preview box ──────────────────────────────────────────────────────────── */

.previewBox {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
  margin-top: 4px;
}

.previewBar {
  background: #f8fafc;
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.previewDots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.previewUrl {
  font-size: 12px;
  color: #64748b;
  flex: 1;
  text-align: center;
}

.previewContent {
  background: #f0f4ff;
}

.previewHero {
  background: linear-gradient(135deg, #1e3a8a, #00b4e9);
  padding: 20px 16px;
}

/* ─── Error & Success ──────────────────────────────────────────────────────── */

.errorBox {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  margin-bottom: 8px;
}

.successIcon {
  font-size: 56px;
  text-align: center;
  margin: 0 0 16px;
  display: block;
}

.storeLink {
  display: block;
  background: #eff6ff;
  color: #00b4e9;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.storeLink:hover {
  background: #dbeafe;
}

/* ─── Login specific ───────────────────────────────────────────────────────── */

.formFields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}