:root {
  --bg-1: #0C0620;
  --bg-2: #1A0B3A;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --white: #EAF1FF;
  --muted: #A0A6C0;
  --accent: #F72585;
  --accent-hover: #fa4699;
  --blue: #4CC9F0;
  --purple: #3A0CA3;
  --radius: 16px;
  --shadow-1: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.25);
}

/* ---------- Background / Page Shell ---------- */
.bg-gradient {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(74, 0, 224, 0.25), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(247, 37, 133, 0.2), transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 100%) !important;
  color: var(--white);
}

.account-pages {
  min-height: calc(100vh - 0px);
  display: grid;
  align-items: center;
}

/* ---------- Card (Glass) ---------- */
.fts-sa-card {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(10px);
}

.fts-sa-card__body {
  padding: 28px;
}

@media (min-width: 576px) {
  .fts-sa-card__body { padding: 36px; }
}

/* ---------- Logo / Avatar ---------- */
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.avatar-md {
  width: 76px;
  height: 76px;
}

.avatar-title {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
  transition: transform .25s ease;
}

.avatar-title:hover {
  transform: translateY(-2px);
}

/* ---------- Typography ---------- */
.fts-sa-card__body h6 {
  color: var(--white);
  font-weight: 700;
  letter-spacing: .2px;
  margin-bottom: 8px;
}

.fts-sa-card__body p {
  color: var(--muted);
  margin-bottom: 14px;
}

.below-text,
.footer-text,
.text-muted {
  color: var(--muted) !important;
}

/* ---------- Labels ---------- */
.fts-sa-label {
  display: inline-block;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- Inputs ---------- */
.fts-sa-input,
.input-group .fts-sa-input,
.form-control.fts-sa-input {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--stroke);
  color: var(--white);
  border-radius: calc(var(--radius) - 6px);
  padding: 10px 12px;
  height: 46px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.fts-sa-input::placeholder {
  color: rgba(234, 241, 255, 0.45);
}

.fts-sa-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.18);
  border-color: rgba(76,201,240,0.65);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}

/* Fix Chrome autofill yellow */
.fts-sa-input:-webkit-autofill,
.fts-sa-input:-webkit-autofill:hover,
.fts-sa-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--white);
  -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,0.06) inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ---------- Password InputGroup ---------- */
.auth-pass-inputgroup {
  position: relative;
}

.auth-pass-inputgroup .fts-sa-input {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.password-toggle.btn,
.password-toggle {
  border: 1px solid var(--stroke) !important;
  border-left: none !important;
  background: rgba(255,255,255,0.04) !important;
  color: var(--white) !important;
  height: 46px;
  padding: 0 14px;
  border-top-right-radius: calc(var(--radius) - 6px) !important;
  border-bottom-right-radius: calc(var(--radius) - 6px) !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.password-toggle:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(76,201,240,0.4) !important;
}

/* ---------- Checkbox ---------- */
.form-check-input {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  cursor: pointer;
  accent-color: var(--accent);
}

.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(247, 37, 133, 0.18);
  border-color: rgba(247, 37, 133, 0.6);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.form-check-label {
  color: var(--white);
}

/* ---------- Buttons ---------- */
.fts-sa-btn,
.d-grid .fts-sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border: none;
  border-radius: calc(var(--radius) - 6px);
  font-weight: 700;
  letter-spacing: .3px;
  color: #fff;
  background-image: linear-gradient(135deg, var(--accent), var(--purple) 55%, var(--blue));
  box-shadow: 0 8px 20px rgba(247, 37, 133, 0.25);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}

.fts-sa-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 24px rgba(247, 37, 133, 0.35);
}

.fts-sa-btn:active {
  transform: translateY(1px);
}

.fts-sa-btn1 {
    --_bg: var(--sa-glass);
    --_bd: var(--sa-stroke);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--sa-white);
    background: var(--_bg);
    border: 1px solid var(--_bd);
    transition: transform .08s ease, background .2s ease, border-color .2s ease;
    text-decoration: none;
}

.fts-sa-btn1:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.fts-sa-btn1:active {
    transform: translateY(0);
}

.fts-sa-btn--primary {
    --_bg: linear-gradient(180deg, rgba(58, 12, 163, .9), rgba(58, 12, 163, .6));
    --_bd: rgba(76, 201, 240, .35);
}

/* ---------- Links ---------- */
a,
a:focus {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #7fdfff;
  text-decoration: underline;
}

/* ---------- Social Login ---------- */
.social-list-item {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-2);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}

.social-list-item i {
  font-size: 20px;
  line-height: 1;
  color: var(--white);
}

.social-list-item:hover {
  background: rgba(255,255,255,0.10);
  transform: translateY(-1px);
}

/* ---------- Alerts (status messages) ---------- */
.alert {
  border-radius: calc(var(--radius) - 8px);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.04);
  color: var(--white);
}

.alert-success {
  border-color: rgba(72,187,120,0.35);
  background: rgba(72,187,120,0.12);
  color: #b6ffd3;
}

/* ---------- Footer ---------- */
.footer-text {
  margin: 18px 0 0;
  font-size: 0.95rem;
}

/* ---------- Validation ---------- */
.text-danger {
  color: #ff7b7b !important;
  font-size: 0.9rem;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 575.98px) {
  .fts-sa-card__body { padding: 22px; }
  .avatar-title { width: 68px; height: 68px; }
  .fts-sa-input,
  .password-toggle { height: 44px; }
  .fts-sa-btn { height: 44px; }
}

/* ---------- RTL Support (if guest layout is RTL) ---------- */
[dir="rtl"] .auth-pass-inputgroup .fts-sa-input {
  border-top-right-radius: calc(var(--radius) - 6px);
  border-bottom-right-radius: calc(var(--radius) - 6px);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 1px solid var(--stroke);
  border-right: none;
}

[dir="rtl"] .password-toggle {
  border-left: 1px solid var(--stroke) !important;
  border-right: none !important;
  border-top-left-radius: calc(var(--radius) - 6px) !important;
  border-bottom-left-radius: calc(var(--radius) - 6px) !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
