/* ═══════════════════════════════════════════════════
   BULVAR — AUTH PAGES (Login & Register)
   Consistent with Design System v3
═══════════════════════════════════════════════════ */

/* ─── Layout ─── */
.auth-body {
  min-height: 100vh;
  background: var(--bg);
}
.auth-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  min-height: calc(100vh - 62px); /* Accommodate header */
}
/* Side content animations */
@keyframes authSlideUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: none; }
}
.auth-side__logo { animation: authSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) forwards; }
.auth-side__text { animation: authSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.auth-side__features { animation: authSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.2s both; }
.auth-side__footer { animation: authSlideUp 0.6s cubic-bezier(0.22,1,0.36,1) 0.3s both; }

/* ─── Left Side Panel ─── */
.auth-side {
  position: relative;
  background: var(--ink);
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.auth-side__grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(59,130,246,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 10%, transparent 70%);
}
.auth-side__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.auth-side__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 48px;
}
.auth-side__text {
  margin-bottom: auto;
}
.auth-side__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}
.auth-side__desc {
  font-size: 14px;
  line-height: 1.7;
  color: #64748B;
}
.auth-side__features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.auth-side__feat {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #94A3B8;
}
.auth-side__feat-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  background: #1E293B;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.auth-side__footer {
  font-size: 11px;
  color: #334155;
}

/* Floating emojis on side panel */
.auth-side__emojis {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-emoji {
  position: absolute;
  font-size: 24px;
  opacity: 0;
  will-change: transform, opacity;
  animation-fill-mode: both;
  animation-iteration-count: infinite;
}
.ae-1 { left: 10%; top: 25%;  animation: aeFloat 9s  0s   infinite; font-size: 28px; }
.ae-2 { right: 15%; top: 15%; animation: aeFloat 10s 1.5s infinite; font-size: 22px; }
.ae-3 { left: 20%; bottom: 30%; animation: aeFloat 8s  2.5s infinite; font-size: 26px; }
.ae-4 { right: 10%; top: 50%; animation: aeFloat 11s 0.8s infinite; font-size: 24px; }
.ae-5 { left: 5%;  bottom: 15%; animation: aeFloat 9.5s 3s infinite; font-size: 20px; }
.ae-6 { right: 25%; bottom: 20%; animation: aeFloat 10.5s 1s infinite; font-size: 22px; }

@keyframes aeFloat {
  0%   { opacity: 0;   transform: translateY(10px) scale(0.7) rotate(-10deg); }
  15%  { opacity: 0.3; transform: translateY(-5px) scale(1) rotate(0deg); }
  50%  { opacity: 0.2; transform: translateY(-18px) scale(0.95) rotate(5deg); }
  85%  { opacity: 0.3; transform: translateY(-5px) scale(1) rotate(-2deg); }
  100% { opacity: 0;   transform: translateY(10px) scale(0.7) rotate(-10deg); }
}

/* ─── Right Main Panel ─── */
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  min-height: 100vh;
  overflow-y: auto;
}
.auth-main__inner {
  width: 100%;
  max-width: 460px;
  animation: authFormIn 0.7s cubic-bezier(0.22,1,0.36,1) 0.15s both;
}
@keyframes authFormIn {
  0% { opacity: 0; transform: translateX(30px); }
  100% { opacity: 1; transform: none; }
}
.auth-form-container--wide {
  max-width: 100%;
}
.auth-mobile-logo {
  display: none;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 28px;
}

/* ─── Form Header ─── */
.auth-form__header {
  margin-bottom: 28px;
}
.auth-form__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 6px;
}
.auth-form__subtitle {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ─── Form Elements ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.form-label i {
  font-size: 12px;
  color: var(--ink-ghost);
  width: 14px;
  text-align: center;
}
.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.form-label-row .form-label {
  margin-bottom: 0;
}
.form-forgot {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  transition: opacity 0.15s;
}
.form-forgot:hover { opacity: 0.7; }

.form-input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 11px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input::placeholder {
  color: var(--ink-ghost);
  font-weight: 400;
}
.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.form-input.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 60px;
}

/* Select */
.form-select-wrap {
  position: relative;
}
.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  cursor: pointer;
}
.form-select-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--ink-ghost);
  pointer-events: none;
}

/* Input with toggle button */
.form-input-wrap {
  position: relative;
}
.form-input-wrap .form-input {
  padding-right: 44px;
}
.form-toggle-pw {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink-ghost);
  font-size: 14px;
  transition: color 0.15s;
  border-radius: var(--r-sm);
}
.form-toggle-pw:hover { color: var(--ink); }

/* Hints & Errors */
.form-hint {
  display: block;
  font-size: 11px;
  color: var(--ink-ghost);
  margin-top: 4px;
  line-height: 1.4;
}
.form-error {
  display: none;
  font-size: 12px;
  color: var(--red);
  font-weight: 500;
  margin-top: 4px;
  line-height: 1.4;
}
.form-error.show {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Checkbox */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.5;
}
.form-checkbox input { display: none; }
.form-checkbox__mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  margin-top: 1px;
  font-size: 10px;
  color: transparent;
}
.form-checkbox input:checked + .form-checkbox__mark {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.form-checkbox__text { flex: 1; }
.form-link {
  color: var(--blue);
  font-weight: 600;
  transition: opacity 0.15s;
}
.form-link:hover { opacity: 0.7; }

/* Two column row */
.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-row {
  margin-bottom: 18px;
}

/* Password Strength */
.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.pw-strength__bar {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.pw-strength__fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  transition: width 0.3s, background 0.3s;
  background: var(--line);
}
.pw-strength__text {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-ghost);
  white-space: nowrap;
}

/* ─── Button Full Width ─── */
.btn-dark--full {
  width: 100%;
  justify-content: center;
  padding: 13px 24px;
  font-size: 15px;
}
.btn-dark--green {
  background: var(--green);
}
.btn-dark--green:hover {
  opacity: 0.88;
}

/* ─── Social Login ─── */
.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 20px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.btn-social:hover {
  border-color: var(--ink-ghost);
  background: var(--bg-muted);
}

/* ─── Divider ─── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-divider span {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-ghost);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Footer Link ─── */
.auth-footer-link {
  text-align: center;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.auth-footer-link a {
  color: var(--blue);
  font-weight: 700;
  margin-left: 4px;
  transition: opacity 0.15s;
}
.auth-footer-link a:hover { opacity: 0.7; }
.auth-footer-link a i { font-size: 11px; }

/* ═══════════════════════════════════════════════════
   REGISTRATION — Progress Bar
═══════════════════════════════════════════════════ */
.reg-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 0 4px;
}
.reg-progress__step {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.reg-progress__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink-ghost);
  transition: all 0.3s;
  flex-shrink: 0;
}
.reg-progress__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-ghost);
  transition: color 0.3s;
  white-space: nowrap;
}
.reg-progress__line {
  flex: 1;
  height: 2px;
  background: var(--line);
  margin: 0 10px;
  border-radius: 2px;
  overflow: hidden;
  min-width: 20px;
}
.reg-progress__line-fill {
  height: 100%;
  width: 0%;
  background: var(--blue);
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}

/* Active & completed states */
.reg-progress__step--active .reg-progress__num {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.reg-progress__step--active .reg-progress__label {
  color: var(--ink);
}
.reg-progress__step--done .reg-progress__num {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.reg-progress__step--done .reg-progress__label {
  color: var(--green);
}

/* ═══════════════════════════════════════════════════
   REGISTRATION — Steps
═══════════════════════════════════════════════════ */
.reg-step {
  display: none;
  animation: stepIn 0.4s ease;
}
.reg-step--active {
  display: block;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.reg-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.reg-back {
  padding: 10px 18px;
}

/* ═══════════════════════════════════════════════════
   REGISTRATION — Type Selection Cards
═══════════════════════════════════════════════════ */
.type-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.type-card {
  cursor: pointer;
  display: block;
}
.type-card__radio {
  display: none;
}
.type-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  transition: all 0.2s;
}
.type-card:hover .type-card__inner {
  border-color: var(--ink-ghost);
  background: var(--bg-muted);
}
.type-card__radio:checked ~ .type-card__inner {
  border-color: var(--blue);
  background: var(--blue-bg);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.type-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.type-card__body {
  flex: 1;
}
.type-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.type-card__desc {
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.type-card__check {
  font-size: 20px;
  color: var(--line);
  flex-shrink: 0;
  transition: color 0.2s;
  margin-top: 2px;
}
.type-card__radio:checked ~ .type-card__inner .type-card__check {
  color: var(--blue);
}
.type-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 20px 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
}
.type-card__radio:checked ~ .type-card__tags {
  opacity: 1;
  max-height: 60px;
  padding-top: 10px;
}
.type-tag {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 100px;
}

/* ═══════════════════════════════════════════════════
   REGISTRATION — Legal Sections
═══════════════════════════════════════════════════ */
.legal-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.legal-section--hidden {
  display: none;
}
.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--blue-bg);
  border: 1px solid #BFDBFE;
  border-radius: var(--r-md);
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-mid);
  margin-bottom: 22px;
}
.legal-notice i {
  color: var(--blue);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.legal-notice--purple {
  background: var(--purple-bg);
  border-color: #DDD6FE;
}
.legal-notice--purple i {
  color: var(--purple);
}

/* ═══════════════════════════════════════════════════
   REGISTRATION — Success
═══════════════════════════════════════════════════ */
.reg-success {
  text-align: center;
  padding: 40px 20px;
}
.reg-success__icon {
  font-size: 56px;
  color: var(--green);
  margin-bottom: 20px;
  animation: successPop 0.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes successPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.reg-success__title {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.reg-success__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 380px;
  margin: 0 auto 28px;
}
.reg-success__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .auth-layout {
    grid-template-columns: 380px 1fr;
  }
  .auth-side__title {
    font-size: 26px;
  }
  .reg-progress__label {
    display: none;
  }
  .reg-progress__line {
    min-width: 16px;
    margin: 0 6px;
  }
}

@media (max-width: 768px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-side {
    display: none;
  }
  .auth-mobile-logo {
    display: block;
  }
  .auth-main {
    padding: 24px 20px;
    align-items: flex-start;
    padding-top: 32px;
  }
  .auth-main__inner {
    max-width: 500px;
    margin: 0 auto;
  }
  .auth-form__title {
    font-size: 22px;
  }
  .form-row-2col {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .reg-progress {
    gap: 0;
    justify-content: center;
  }
  .reg-progress__label {
    display: none;
  }
  .reg-progress__line {
    min-width: 24px;
    margin: 0 8px;
  }
  .reg-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .reg-actions .reg-back {
    width: 100%;
    justify-content: center;
  }
  .type-card__inner {
    padding: 14px 16px;
  }
}

@media (max-width: 380px) {
  .auth-main {
    padding: 16px 14px;
  }
  .reg-progress__num {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }
}