@import url("sidebar.css");

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px !important;
  color: var(--vm-text);
  background:
    radial-gradient(circle at 12% 6%, rgba(91, 92, 226, .11), transparent 25rem),
    radial-gradient(circle at 92% 94%, rgba(25, 183, 198, .1), transparent 25rem),
    #eef1f6 !important;
}

/* Authentication */
.auth-shell {
  width: min(1160px, 100%);
  min-height: min(720px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
  margin: auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(222, 227, 237, .9);
  border-radius: 28px;
  box-shadow: 0 35px 90px rgba(24, 32, 60, .16);
}

.auth-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 46px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 76% 23%, rgba(111, 224, 231, .2), transparent 17rem),
    radial-gradient(circle at 15% 92%, rgba(112, 114, 236, .35), transparent 20rem),
    linear-gradient(145deg, #11182f 0%, #202657 55%, #3f40a9 100%);
}

.auth-showcase::before,
.auth-showcase::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
}
.auth-showcase::before { top: 20%; right: -170px; width: 420px; height: 420px; box-shadow: 0 0 0 52px rgba(255,255,255,.022), 0 0 0 104px rgba(255,255,255,.014); }
.auth-showcase::after { bottom: -110px; left: -130px; width: 320px; height: 320px; box-shadow: 0 0 0 42px rgba(255,255,255,.018); }
.auth-showcase-brand, .auth-showcase-copy, .auth-showcase-footer { position: relative; z-index: 1; }
.auth-showcase-brand { display: flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 800; letter-spacing: -.02em; }
.auth-brand-logo { width: 44px; height: 44px; display: grid; place-items: center; padding: 5px; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 14px; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.auth-brand-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.auth-wordmark { display: inline-flex; align-items: center; }
.auth-showcase .brand-voucher { color: #fff; }
.auth-showcase .brand-manager { color: #8c91ff; }
.auth-kicker { display: inline-flex; margin-bottom: 13px; color: #9da8ff; font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-showcase h1 { margin: 0; color: #fff; font-size: clamp(2.35rem, 4.1vw, 4.1rem); font-weight: 820; line-height: .98; letter-spacing: -.065em; }
.auth-showcase h1 em { color: #9ba0ff; font-style: normal; }
.auth-showcase p { max-width: 490px; margin: 24px 0 0; color: #b9c2dc; font-size: .86rem; line-height: 1.75; }
.auth-showcase-footer { display: flex; flex-wrap: wrap; gap: 20px; color: #aeb8d3; font-size: .65rem; font-weight: 650; }
.auth-showcase-footer i { margin-right: 6px; color: #5fd5b2; }

.auth-access { display: grid; place-items: center; padding: 44px; background: #fff; }
.login-card {
  width: 100% !important;
  max-width: 400px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.auth-form-heading { margin-bottom: 30px; }
.auth-form-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; color: var(--vm-primary); font-size: .61rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-form-kicker i { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #6b6ced, #4d4ecf); border-radius: 8px; box-shadow: 0 7px 16px rgba(91,92,226,.2); font-size: .65rem; }
.auth-form-heading h2 { margin: 0; color: var(--vm-ink); font-size: 2rem; font-weight: 830; letter-spacing: -.055em; }
.auth-form-heading p { max-width: 340px; margin: 9px 0 0; color: #858fa2; font-size: .74rem; line-height: 1.6; }
.login-card form { margin-top: 0; }
.login-card .form-control { min-height: 52px; padding: .78rem 1rem; background: #f8f9fc; border-color: #e1e5ed; font-size: .78rem; }
.login-card .btn-primary { min-height: 50px; border-radius: 12px; }
.login-card a.small { color: var(--vm-primary) !important; font-weight: 650; }

/* Setup and captive portal */
.wizard-container {
  position: relative;
  width: min(920px, 100%);
  max-width: 920px !important;
  margin: 24px auto !important;
  padding: 0 0 34px !important;
  overflow: hidden;
  background: rgba(255, 255, 255, .97) !important;
  border: 1px solid var(--vm-line);
  border-radius: 25px !important;
  box-shadow: 0 30px 75px rgba(24, 33, 61, .13) !important;
}
.wizard-container::before { display: block; height: 6px; content: ""; background: linear-gradient(90deg, #5b5ce2, #7779f0 58%, #19b7c6); }
.wizard-container > h4 { margin: 0 !important; padding: 32px 44px 8px; color: var(--vm-ink); font-size: 1.45rem; font-weight: 820; letter-spacing: -.04em; text-align: left !important; }
.wizard-container > h4 i { width: 42px; height: 42px; display: inline-grid; place-items: center; margin-right: 11px !important; color: var(--vm-primary) !important; background: var(--vm-primary-soft); border-radius: 13px; }
.wizard-container > p { max-width: 720px; margin: 0 !important; padding: 0 44px 24px; color: #7f899c !important; line-height: 1.65; text-align: left !important; }
.wizard-container > form { padding: 0 44px; }

.vm-stepper { display: flex; align-items: center; gap: 0; margin: 0 44px 28px; padding: 14px; background: #f7f8fb; border: 1px solid var(--vm-line); border-radius: 15px; }
.vm-stepper-item { min-width: 0; display: flex; flex: 1; align-items: center; gap: 8px; position: relative; color: #9aa3b3; font-size: .63rem; font-weight: 700; }
.vm-stepper-item:not(:last-child)::after { height: 1px; flex: 1; margin: 0 9px; content: ""; background: #dde2eb; }
.vm-stepper-number { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; color: #8d96a8; background: #fff; border: 1px solid #dce1e9; border-radius: 9px; font-size: .62rem; }
.vm-stepper-item.active { color: var(--vm-primary); }
.vm-stepper-item.active .vm-stepper-number { color: #fff; background: var(--vm-primary); border-color: var(--vm-primary); box-shadow: 0 7px 16px rgba(91,92,226,.2); }
.vm-stepper-item.complete .vm-stepper-number { color: #fff; background: var(--vm-success); border-color: var(--vm-success); }
.vm-stepper-item.complete::after { background: #9ed8c5; }
.wizard-container .step { min-height: 230px; padding: 25px; background: #fbfcfe; border: 1px solid var(--vm-line); border-radius: 17px; }
.wizard-container .step.active { animation: vmStepIn .28s ease both; }
@keyframes vmStepIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }
.wizard-container .form-check { margin-bottom: 8px; padding: 12px 12px 12px 38px; background: #fff; border: 1px solid var(--vm-line); border-radius: 11px; }
.wizard-container .d-flex.justify-content-between.mt-4 { align-items: center; padding-top: 4px; }

/* Standalone confirmation */
.well {
  width: min(540px, 100%);
  max-width: 540px !important;
  margin: 7vh auto 0 !important;
  padding: 38px !important;
  background: #fff !important;
  border: 1px solid var(--vm-line) !important;
  border-radius: 22px !important;
  box-shadow: 0 28px 75px rgba(24, 33, 61, .14) !important;
}
.well h4 { color: var(--vm-ink) !important; font-weight: 820 !important; letter-spacing: -.03em; }

@media (max-width: 899.98px) {
  body { padding: 0 !important; }
  .auth-shell { min-height: 100vh; grid-template-columns: 1fr; border: 0; border-radius: 0; }
  .auth-showcase { min-height: 250px; padding: 30px; }
  .auth-showcase h1 { font-size: 2.5rem; }
  .auth-showcase p { margin-top: 15px; }
  .auth-showcase-footer { display: none; }
  .auth-access { padding: 42px 24px; }
}

@media (max-width: 575.98px) {
  body { align-items: flex-start !important; height: auto !important; }
  .auth-showcase { min-height: 210px; padding: 24px; }
  .auth-showcase-copy { margin-top: 28px; }
  .auth-showcase h1 { font-size: 2.05rem; }
  .auth-showcase p { display: none; }
  .auth-access { padding: 34px 22px; }
  .wizard-container { min-height: 100vh; margin: 0 !important; border: 0; border-radius: 0 !important; box-shadow: none !important; }
  .wizard-container > h4 { padding: 25px 20px 8px; font-size: 1.2rem; }
  .wizard-container > p { padding: 0 20px 20px; }
  .wizard-container > form { padding: 0 20px; }
  .vm-stepper { margin: 0 20px 22px; padding: 10px; }
  .vm-stepper-label { display: none; }
  .wizard-container .step { padding: 18px; }
  .well { margin: 18px auto !important; padding: 28px 21px !important; border-radius: 18px !important; }
}
