/* ============================================================
   GLOBAL SKY — AUTH PAGES
   Premium Black & Gold · Cinzel + Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --black: #030303;
  --night: #090806;
  --graphite: #15130f;
  --panel: rgba(18, 16, 12, 0.72);
  --panel-strong: rgba(24, 20, 13, 0.9);
  --gold: #d6a740;
  --gold-soft: #f3d889;
  --gold-dark: #7b5517;
  --platinum: #f7f1df;
  --muted: #b8ac91;
  --line: rgba(246, 205, 113, 0.2);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  --error: #e74c3c;
  --success: #2ecc71;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 400;
  color: var(--platinum);
  background: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ============================================================
   BACKGROUND
   ============================================================ */

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.auth-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transform: scale(1.04);
  animation: bgDrift 22s ease-in-out infinite alternate;
}

.auth-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(214, 167, 64, 0.06), transparent 60%),
    linear-gradient(180deg, rgba(3, 3, 3, 0.7) 0%, rgba(3, 3, 3, 0.4) 40%, rgba(3, 3, 3, 0.85) 100%);
}

@keyframes bgDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.08) translate3d(-1%, -0.5%, 0); }
}

/* ============================================================
   LAYOUT
   ============================================================ */

.auth-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr minmax(420px, 560px);
  min-height: 100vh;
}

/* Left: Branding */
.auth-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px);
  position: relative;
}

.auth-brand-content {
  max-width: 520px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
  text-decoration: none;
}

.brand-logo-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(246, 205, 113, 0.48);
  background:
    linear-gradient(135deg, rgba(246, 205, 113, 0.28), rgba(101, 69, 17, 0.28)),
    rgba(0, 0, 0, 0.55);
  color: var(--gold-soft);
  font-size: 1.1rem;
  box-shadow: 0 0 28px rgba(214, 167, 64, 0.18);
}

.brand-logo-text {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--platinum);
}

.auth-brand h1 {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: 24px;
  text-shadow: 0 0 42px rgba(214, 167, 64, 0.15);
}

.auth-brand h1 .gold {
  background: linear-gradient(135deg, #f8df91 0%, #d6a740 50%, #f3d889 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 48px;
}

.auth-trust {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.auth-trust-item strong {
  display: block;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.4rem;
  color: var(--gold-soft);
  margin-bottom: 4px;
}

.auth-trust-item span {
  font-size: 0.78rem;
  color: rgba(184, 172, 145, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* ============================================================
   RIGHT PANEL — FORM
   ============================================================ */

.auth-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
  border-left: 1px solid rgba(246, 205, 113, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(9, 8, 6, 0.92), rgba(3, 3, 3, 0.97));
  backdrop-filter: blur(30px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
}

.auth-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(246, 205, 113, 0.4), rgba(246, 205, 113, 0.08), transparent);
  z-index: 1;
}

.auth-form-wrapper {
  width: 100%;
  max-width: 400px;
  position: relative;
  margin: auto;
  padding: 20px 0;
}

/* ============================================================
   STEP PROGRESS INDICATOR
   ============================================================ */

.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  padding: 20px 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
}

.step-circle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(246, 205, 113, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: rgba(184, 172, 145, 0.5);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 400ms ease;
}

.step-item span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(184, 172, 145, 0.4);
  transition: color 400ms ease;
}

.step-item.active .step-circle {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(246, 205, 113, 0.15), rgba(0, 0, 0, 0.5));
  color: var(--gold-soft);
  box-shadow: 0 0 20px rgba(214, 167, 64, 0.2);
}

.step-item.active span {
  color: var(--gold-soft);
}

.step-item.completed .step-circle {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(0, 0, 0, 0.5));
  color: var(--success);
}

.step-item.completed span {
  color: var(--success);
}

.step-line {
  width: 36px;
  height: 2px;
  background: rgba(246, 205, 113, 0.12);
  margin: 0 6px;
  margin-bottom: 24px;
  transition: background 400ms ease;
}

.step-line.completed {
  background: var(--success);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

/* ============================================================
   FORM TOGGLE (LOGIN / REGISTER TABS)
   ============================================================ */

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 36px;
  border: 1px solid rgba(246, 205, 113, 0.18);
  background: rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.auth-tab {
  padding: 16px;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(184, 172, 145, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 300ms ease, background 300ms ease;
}

.auth-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  transform: scaleX(0);
  transition: transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-tab.active {
  color: var(--platinum);
  background: rgba(246, 205, 113, 0.06);
}

.auth-tab.active::after {
  transform: scaleX(1);
}

.auth-tab:hover:not(.active) {
  color: var(--muted);
  background: rgba(246, 205, 113, 0.03);
}

/* ============================================================
   REGISTRATION STEPS (slide animation)
   ============================================================ */

.auth-forms {
  position: relative;
  overflow: hidden;
}

.auth-form,
.reg-step {
  width: 100%;
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-form.hidden,
.reg-step.hidden {
  display: none;
  opacity: 0;
  transform: translateX(30px);
}

.auth-form.visible,
.reg-step.visible {
  display: block;
  opacity: 1;
  transform: translateX(0);
  animation: formSlideIn 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes formSlideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes formSlideInReverse {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================
   FORM HEADER
   ============================================================ */

.form-header {
  margin-bottom: 32px;
}

.form-header h2 {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0;
}

.form-header p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   INPUT FIELDS
   ============================================================ */

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(184, 172, 145, 0.8);
}

.form-input-wrapper {
  position: relative;
}

.form-input-wrapper i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(246, 205, 113, 0.4);
  font-size: 0.9rem;
  transition: color 300ms ease;
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 16px 48px 16px 48px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--platinum);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(246, 205, 113, 0.14);
  border-radius: 0;
  outline: none;
  -webkit-appearance: none;
  transition: border-color 300ms ease, box-shadow 300ms ease, background 300ms ease;
}

.form-input::placeholder {
  color: rgba(184, 172, 145, 0.35);
}

.form-input:focus {
  border-color: rgba(246, 205, 113, 0.5);
  background: rgba(246, 205, 113, 0.03);
  box-shadow: 0 0 0 3px rgba(246, 205, 113, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-input:focus + i,
.form-input:focus ~ i {
  color: var(--gold-soft);
}

/* For wrapper where icon is sibling */
.form-input-wrapper:focus-within i {
  color: var(--gold-soft);
}

/* Select / Dropdown styling */
.form-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23d6a740'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 7px;
}

.form-select option {
  background: #13110d;
  color: var(--platinum);
  padding: 10px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(184, 172, 145, 0.5);
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 200ms ease;
  z-index: 5;
}

.password-toggle:hover {
  color: var(--gold-soft);
}

/* ============================================================
   SPONSOR STATUS INDICATOR
   ============================================================ */

.sponsor-status {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 22px;
  transition: all 300ms ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sponsor-status.checking {
  color: var(--muted);
}

.sponsor-status.success {
  color: var(--success);
}

.sponsor-status.success i {
  font-size: 1rem;
}

.sponsor-status.error {
  color: var(--error);
}

.sponsor-status.error i {
  font-size: 1rem;
}

/* Sponsor badge in Step 2 */
.sponsor-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(46, 204, 113, 0.2);
  background: rgba(46, 204, 113, 0.04);
  font-size: 0.82rem;
  color: var(--muted);
}

.sponsor-badge i {
  color: var(--success);
  font-size: 1rem;
}

.sponsor-badge strong {
  color: var(--platinum);
}

/* ============================================================
   FIELD ERROR
   ============================================================ */

.field-error {
  display: none;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--error);
}

.form-error-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.06);
  color: #e74c3c;
  font-size: 0.85rem;
  font-weight: 600;
  animation: formSlideIn 300ms ease;
}

.form-error-toast i {
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Login error */
.login-error {
  display: none;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.06);
  color: #e74c3c;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================================
   CHECKBOX / REMEMBER ME
   ============================================================ */

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  font-size: 0.85rem;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--muted);
}

.form-checkbox input {
  display: none;
}

.form-checkbox .check-box {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(246, 205, 113, 0.3);
  background: rgba(0, 0, 0, 0.4);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 300ms ease;
}

.form-checkbox .check-box i {
  font-size: 0.6rem;
  color: #0b0702;
  opacity: 0;
  transform: scale(0);
  transition: all 200ms ease;
}

.form-checkbox input:checked + .check-box {
  background: linear-gradient(135deg, #f8df91, #b78028);
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(214, 167, 64, 0.25);
}

.form-checkbox input:checked + .check-box i {
  opacity: 1;
  transform: scale(1);
}

.forgot-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  transition: color 200ms ease;
}

.forgot-link:hover {
  color: var(--gold-soft);
  text-decoration: underline;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */

.auth-submit {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(246, 205, 113, 0.34);
  background: linear-gradient(135deg, #f8df91 0%, #b78028 42%, #f5d376 100%);
  color: #120d04;
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 44px rgba(214, 167, 64, 0.22);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 300ms ease;
}

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

.auth-submit:disabled:hover {
  transform: none;
  box-shadow: 0 14px 44px rgba(214, 167, 64, 0.22);
}

.auth-submit::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 48%;
  content: '';
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  transform: skewX(-22deg);
  transition: left 520ms ease;
}

.auth-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(214, 167, 64, 0.35);
}

.auth-submit:hover:not(:disabled)::before {
  left: 115%;
}

.auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.auth-submit i {
  font-size: 0.9rem;
  transition: transform 200ms ease;
}

.auth-submit:hover:not(:disabled) i {
  transform: translateX(4px);
}

/* ============================================================
   DIVIDER
   ============================================================ */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.auth-divider span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(184, 172, 145, 0.5);
  white-space: nowrap;
}

/* ============================================================
   FOOTER TEXT
   ============================================================ */

.auth-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--muted);
}

.auth-footer a {
  color: var(--gold);
  font-weight: 700;
  transition: color 200ms ease;
}

.auth-footer a:hover {
  color: var(--gold-soft);
}

/* ============================================================
   TERMS CHECKBOX (Register)
   ============================================================ */

.terms-check {
  margin-bottom: 24px;
}

.terms-check .form-checkbox {
  font-size: 0.82rem;
  line-height: 1.5;
}

.terms-check a {
  color: var(--gold);
  font-weight: 600;
}

.terms-check a:hover {
  text-decoration: underline;
}

/* ============================================================
   PASSWORD STRENGTH
   ============================================================ */

.password-strength {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.strength-bar {
  flex: 1;
  height: 3px;
  background: rgba(246, 205, 113, 0.1);
  transition: background 300ms ease;
}

.strength-bar.active {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(214, 167, 64, 0.3);
}

.strength-bar.strong {
  background: var(--success);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

.strength-text {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(184, 172, 145, 0.5);
  transition: color 300ms ease;
}

/* ============================================================
   OTP INPUT BOXES
   ============================================================ */

.otp-input-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.otp-box {
  width: 100%;
  aspect-ratio: 1;
  max-width: 60px;
  text-align: center;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(246, 205, 113, 0.18);
  outline: none;
  transition: all 300ms ease;
  caret-color: var(--gold);
}

.otp-box:focus {
  border-color: var(--gold);
  background: rgba(246, 205, 113, 0.04);
  box-shadow: 0 0 0 3px rgba(246, 205, 113, 0.1), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.otp-box:not(:placeholder-shown) {
  border-color: rgba(246, 205, 113, 0.4);
}

.otp-error {
  display: none;
  text-align: center;
  margin-bottom: 16px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--error);
}

.otp-timer {
  text-align: center;
  margin-bottom: 24px;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.otp-timer i {
  color: var(--gold);
}

.otp-timer strong {
  color: var(--gold-soft);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.otp-resend {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--muted);
}

.resend-link {
  background: none;
  border: none;
  color: var(--gold);
  font-family: "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 200ms ease;
}

.resend-link:hover:not(:disabled) {
  color: var(--gold-soft);
  text-decoration: underline;
}

.resend-link:disabled {
  color: rgba(184, 172, 145, 0.4);
  cursor: not-allowed;
}

/* ============================================================
   SUCCESS PAGE
   ============================================================ */

.success-content {
  text-align: center;
}

.success-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.15), rgba(46, 204, 113, 0.04));
  border: 2px solid var(--success);
  border-radius: 50%;
}

.success-icon i {
  font-size: 2rem;
  color: var(--success);
  animation: successCheck 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes successCheck {
  0% { opacity: 0; transform: scale(0) rotate(-45deg); }
  50% { transform: scale(1.2) rotate(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.success-ring {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 50%;
  animation: ringPulse 2s ease-in-out infinite;
}

.success-ring.ring-2 {
  inset: -16px;
  border-color: rgba(46, 204, 113, 0.15);
  animation-delay: 0.5s;
}

@keyframes ringPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.success-title {
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--platinum);
  margin-bottom: 8px;
}

.success-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.credentials-box {
  margin-bottom: 24px;
  border: 1px solid rgba(246, 205, 113, 0.18);
  background: rgba(246, 205, 113, 0.03);
  overflow: hidden;
}

.credential-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(246, 205, 113, 0.08);
}

.credential-row:last-child {
  border-bottom: none;
}

.credential-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.credential-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  font-family: "Cinzel", Georgia, serif;
}

.credential-password {
  display: flex;
  align-items: center;
  gap: 10px;
}

.password-toggle-inline {
  background: none;
  border: none;
  color: rgba(184, 172, 145, 0.5);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  transition: color 200ms ease;
}

.password-toggle-inline:hover {
  color: var(--gold-soft);
}

.success-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: var(--success);
  font-weight: 600;
}

.success-note i {
  font-size: 1rem;
}

/* ============================================================
   SHAKE ANIMATION (OTP error)
   ============================================================ */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-6px); }
  20%, 40%, 60%, 80% { transform: translateX(6px); }
}

/* ============================================================
   FLOATING PARTICLES (decorative)
   ============================================================ */

.auth-particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.auth-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--gold-soft);
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) scale(0);
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
    transform: translateY(-10vh) scale(1);
  }
}

.auth-particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; width: 2px; height: 2px; }
.auth-particle:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; width: 3px; height: 3px; }
.auth-particle:nth-child(3) { left: 40%; animation-duration: 14s; animation-delay: 4s; width: 1px; height: 1px; }
.auth-particle:nth-child(4) { left: 55%; animation-duration: 20s; animation-delay: 1s; width: 2px; height: 2px; }
.auth-particle:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 3s; width: 3px; height: 3px; }
.auth-particle:nth-child(6) { left: 85%; animation-duration: 22s; animation-delay: 5s; width: 1px; height: 1px; }
.auth-particle:nth-child(7) { left: 15%; animation-duration: 15s; animation-delay: 7s; width: 2px; height: 2px; }
.auth-particle:nth-child(8) { left: 60%; animation-duration: 19s; animation-delay: 6s; width: 2px; height: 2px; }

/* ============================================================
   GOLD LINE ACCENTS
   ============================================================ */

.gold-line-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 205, 113, 0.5), transparent);
  z-index: 10;
}

.gold-line-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246, 205, 113, 0.3), transparent);
  z-index: 10;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 960px) {
  .auth-page {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-panel {
    border-left: none;
    padding: 40px 24px;
    min-height: 100vh;
    align-items: flex-start;
    padding-top: 48px;
  }

  .auth-form-wrapper {
    max-width: 460px;
    margin: 0 auto;
  }

  .brand-logo-mobile {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
  }

  .brand-logo-mark {
    width: 44px;
    height: 44px;
  }

  .brand-logo-text {
    font-size: 1rem;
  }
}

@media (min-width: 961px) {
  .brand-logo-mobile {
    display: none;
  }
}

@media (max-width: 768px) {
  .auth-panel {
    padding: 32px 20px;
    padding-top: 40px;
  }

  .auth-form-wrapper {
    max-width: 420px;
  }

  .form-header {
    margin-bottom: 24px;
  }

  .form-header h2 {
    font-size: 1.45rem;
  }

  .form-header p {
    font-size: 0.85rem;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-input {
    padding: 14px 44px 14px 44px;
    font-size: 0.88rem;
  }

  .password-toggle {
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 0.88rem;
  }

  .form-input-wrapper i {
    left: 16px;
    font-size: 0.85rem;
  }

  .form-select {
    background-position: right 14px center;
  }

  .auth-submit {
    min-height: 50px;
    font-size: 0.78rem;
  }

  .step-progress {
    margin-bottom: 28px;
    padding: 16px 0;
  }

  .step-circle {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
  }

  .step-line {
    width: 28px;
  }

  .sponsor-badge {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .otp-box {
    font-size: 1.3rem;
  }

  .otp-timer {
    font-size: 0.78rem;
  }

  .credentials-box {
    margin-bottom: 20px;
  }

  .credential-row {
    padding: 14px 16px;
  }

  .credential-label {
    font-size: 0.68rem;
  }

  .credential-value {
    font-size: 0.88rem;
  }

  .success-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 24px;
  }

  .success-icon i {
    font-size: 1.7rem;
  }

  .success-title {
    font-size: 1.4rem;
  }

  .success-subtitle {
    font-size: 0.88rem;
    margin-bottom: 24px;
  }

  .auth-footer {
    margin-top: 24px;
    font-size: 0.82rem;
  }

  .terms-check .form-checkbox {
    font-size: 0.78rem;
  }

  .form-row {
    margin-bottom: 22px;
    font-size: 0.82rem;
  }

  .otp-resend {
    margin-top: 20px;
    font-size: 0.78rem;
  }
}

@media (max-width: 480px) {
  .auth-panel {
    padding: 24px 16px;
    padding-top: 32px;
  }

  .auth-form-wrapper {
    max-width: 100%;
  }

  .brand-logo-mobile {
    margin-bottom: 24px;
  }

  .brand-logo-mark {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .brand-logo-text {
    font-size: 0.92rem;
  }

  .auth-trust {
    flex-direction: column;
    gap: 20px;
  }

  .auth-tabs {
    font-size: 0.72rem;
  }

  .form-header h2 {
    font-size: 1.3rem;
  }

  .form-header p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .form-group label {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .form-input {
    padding: 13px 40px 13px 40px;
    font-size: 0.85rem;
  }

  .form-input-wrapper i {
    left: 14px;
    font-size: 0.82rem;
  }

  .password-toggle {
    right: 8px;
    width: 28px;
    height: 28px;
    font-size: 0.82rem;
  }

  .form-row-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Step progress - compact on small screens */
  .step-progress {
    gap: 0;
    margin-bottom: 24px;
    padding: 12px 0;
  }

  .step-line {
    width: 18px;
    margin: 0 4px;
  }

  .step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }

  .step-item span {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
  }

  /* OTP boxes */
  .otp-input-group {
    gap: 8px;
  }

  .otp-box {
    font-size: 1.15rem;
    aspect-ratio: 1;
  }

  .otp-timer {
    margin-bottom: 20px;
    font-size: 0.76rem;
  }

  .otp-timer strong {
    font-size: 0.88rem;
  }

  /* Success page */
  .success-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
  }

  .success-icon i {
    font-size: 1.5rem;
  }

  .success-ring {
    inset: -6px;
  }

  .success-ring.ring-2 {
    inset: -12px;
  }

  .success-title {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }

  .success-subtitle {
    font-size: 0.82rem;
    margin-bottom: 20px;
  }

  .credentials-box {
    margin-bottom: 18px;
  }

  .credential-row {
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 12px 14px;
  }

  .credential-label {
    font-size: 0.65rem;
  }

  .credential-value {
    font-size: 0.85rem;
  }

  .success-note {
    font-size: 0.76rem;
    margin-bottom: 22px;
  }

  /* Sponsor badge */
  .sponsor-badge {
    padding: 10px 12px;
    font-size: 0.76rem;
    margin-bottom: 20px;
  }

  .sponsor-status {
    font-size: 0.78rem;
  }

  /* Button */
  .auth-submit {
    min-height: 48px;
    font-size: 0.76rem;
  }

  .auth-footer {
    margin-top: 20px;
    font-size: 0.8rem;
  }

  .terms-check {
    margin-bottom: 20px;
  }

  .terms-check .form-checkbox {
    font-size: 0.76rem;
    gap: 8px;
  }

  .form-checkbox .check-box {
    width: 16px;
    height: 16px;
  }

  .form-row {
    margin-bottom: 20px;
    font-size: 0.8rem;
  }

  .forgot-link {
    font-size: 0.76rem;
  }

  .login-error {
    font-size: 0.78rem;
    padding: 10px 14px;
    margin-bottom: 14px;
  }

  .form-error-toast {
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 0.78rem;
  }

  .otp-error {
    font-size: 0.78rem;
  }

  .otp-resend {
    font-size: 0.76rem;
    margin-top: 18px;
  }

  .resend-link {
    font-size: 0.76rem;
  }

  .password-strength {
    margin-top: 8px;
  }

  .strength-text {
    font-size: 0.68rem;
    margin-top: 4px;
  }
}

@media (max-width: 360px) {
  .auth-panel {
    padding: 20px 12px;
    padding-top: 28px;
  }

  .brand-logo-mobile {
    margin-bottom: 20px;
  }

  .brand-logo-mark {
    width: 36px;
    height: 36px;
  }

  .brand-logo-text {
    font-size: 0.85rem;
  }

  .form-header h2 {
    font-size: 1.15rem;
  }

  .form-header p {
    font-size: 0.78rem;
  }

  .form-input {
    padding: 12px 36px 12px 36px;
    font-size: 0.82rem;
  }

  .form-input-wrapper i {
    left: 12px;
    font-size: 0.78rem;
  }

  .password-toggle {
    right: 6px;
    width: 26px;
    height: 26px;
    font-size: 0.78rem;
  }

  .step-progress {
    margin-bottom: 20px;
  }

  .step-line {
    width: 14px;
    margin: 0 2px;
  }

  .step-circle {
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }

  .step-item span {
    font-size: 0.5rem;
  }

  .otp-input-group {
    gap: 6px;
  }

  .otp-box {
    font-size: 1rem;
    border-width: 1px;
  }

  .success-title {
    font-size: 1.1rem;
  }

  .credential-row {
    padding: 10px 12px;
  }

  .auth-submit {
    min-height: 44px;
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Global Sky Logo Adjustable Styling */
.main-logo-img {
  height: 48px; /* Default height adjusted for text-inclusive logo */
  max-width: 220px;
  width: auto;
  object-fit: contain;
  display: block;
}
.loader-brand .main-logo-img {
  height: 64px;
  max-width: 280px;
  animation: pulse-glow 2s infinite ease-in-out;
}
.auth-brand-content .main-logo-img {
  height: auto;
  max-height: 64px;
  max-width: 100%;
  object-fit: contain;
}
.brand-logo-mobile .main-logo-img {
  height: auto;
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
}
.qr-container .main-logo-img {
  height: auto;
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
}

/* Back to Homepage Link */
.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-soft);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 200ms ease, transform 200ms ease;
}

.back-home-link i {
  font-size: 0.82rem;
}

.back-home-link:hover {
  color: #fff;
  transform: translateX(-4px);
}
