/* Magna Academy shared sign-in and enrollment sheet. */

body.mwa-locked {
  overflow: hidden;
}

.mwa-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(9, 17, 32, 0.64);
}

.mwa-backdrop[hidden] {
  display: none;
}

.mwa-dialog {
  position: relative;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 30px 24px 34px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: #0f1b33;
  box-shadow: 0 24px 70px rgba(9, 17, 32, 0.32);
}

.mwa-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid #dce3ee;
  border-radius: 999px;
  background: #fff;
  color: #0f1b33;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.mwa-sheet-title {
  margin: 0 52px 10px 0;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.08;
}

.mwa-sheet-intro {
  margin: 0 0 20px;
  color: #44506a;
  line-height: 1.6;
}

.mwa-summary {
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid #dce3ee;
  border-radius: 18px;
  background: #f5f7fa;
}

.mwa-summary p {
  margin: 8px 0 0;
  color: #44506a;
  line-height: 1.55;
}

.mwa-summary-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-weight: 800;
}

.mwa-due-label {
  color: #68748c;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mwa-price {
  margin-top: 4px;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
}

.mwa-providers {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.mwa-provider {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid #cbd5e3;
  border-radius: 999px;
  background: #fff;
  color: #0f1b33;
  font-weight: 800;
  text-decoration: none;
}

.mwa-provider:hover,
.mwa-provider:focus-visible {
  border-color: #0f1b33;
  background: #f5f7fa;
}

.mwa-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #68748c;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mwa-divider::before,
.mwa-divider::after {
  flex: 1;
  height: 1px;
  background: #dce3ee;
  content: "";
}

.mwa-label {
  display: block;
  margin: 0 0 6px;
  font-weight: 800;
}

.mwa-input {
  width: 100%;
  box-sizing: border-box;
}

.mwa-code-input {
  max-width: 230px;
  letter-spacing: 0.18em;
}

.mwa-sheet-info {
  color: #44506a;
  line-height: 1.55;
}

.mwa-account-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #dce3ee;
  border-radius: 14px;
  background: #f5f7fa;
}

.mwa-account-box span {
  color: #44506a;
}

.mwa-account-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.mwa-plan-state {
  color: #44506a;
}

.mwa-status {
  margin: 10px 0 0;
  color: #44506a;
  line-height: 1.55;
}

@media (min-width: 700px) {
  .mwa-backdrop {
    align-items: center;
    padding: 24px;
  }

  .mwa-dialog {
    width: min(560px, 100%);
    padding: 36px;
    border-radius: 24px;
  }
}
