/* Pantalla de activación y estados de la licencia */

.screen--license {
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(255, 255, 255, .12), transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(18, 183, 169, .18), transparent 60%),
    var(--purple);
  color: #fff;
  overflow-y: auto;
  padding: calc(22px + env(safe-area-inset-top)) 20px calc(22px + env(safe-area-inset-bottom));
  scrollbar-width: none;
}

.screen--license::-webkit-scrollbar { width: 0; }

.license {
  width: 100%;
  max-width: 342px;
  min-height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.license__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.license__brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 27px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.9px;
  color: #fff;
}

.license__brand small {
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
}

.license__secure {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  white-space: nowrap;
}

.license__secure .ic { width: 13px; height: 13px; }

.license__card {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 25px;
  padding: 24px 22px 22px;
  box-shadow: 0 24px 60px rgba(36, 0, 43, .28);
  animation: licenseCardIn .42s cubic-bezier(.2, .78, .25, 1) both;
}

.license__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 15px;
  border-radius: 17px;
  background: #f5e9f8;
  color: var(--purple);
}

.license__icon .ic { width: 26px; height: 26px; }

.license__card h1 {
  margin: 0;
  font-size: 23px;
  line-height: 1.14;
  letter-spacing: -.45px;
  font-weight: 700;
  color: #211c24;
}

.license__lead {
  margin: 8px 0 19px;
  font-size: 13px;
  line-height: 1.45;
  color: #716c74;
}

.license__label {
  display: block;
  margin: 0 0 7px 2px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .15px;
  color: var(--purple);
}

.license__input {
  width: 100%;
  height: 52px;
  padding: 0 13px;
  border: 1.5px solid #e6dce9;
  border-radius: 12px;
  background: #fcfbfd;
  color: #2a232d;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.license__input::placeholder {
  color: #b8aebd;
  font-weight: 500;
  letter-spacing: .3px;
}

.license__input:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108, 15, 123, .11);
}

.license__input:disabled {
  opacity: .65;
}

.license__message {
  min-height: 18px;
  margin: 8px 2px 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: #b4233b;
}

.license__message.is-success { color: #087f73; }

.license__button {
  width: 100%;
  height: 49px;
  margin-top: 9px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1px;
}

.license__button[disabled] {
  opacity: .65;
  cursor: wait;
}

.license__note {
  display: flex;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 15px;
  border-top: 1px solid #f0ebf2;
  color: #948d98;
  font-size: 10.5px;
  line-height: 1.45;
}

.license__note .ic {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  color: #a899ad;
}

.license__foot {
  margin: 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .15px;
  color: rgba(255, 255, 255, .62);
}

.license__card--status {
  text-align: center;
  padding: 36px 24px 34px;
}

.license__card--status h1 {
  margin: 16px 0 6px;
  font-size: 21px;
}

.license__card--status .license__lead {
  margin: 0;
}

.license__card--status .license__lead + .license__lead {
  margin-top: 8px;
  font-size: 11.5px;
  color: #9a929e;
}

.license__spinner {
  width: 38px;
  height: 38px;
  margin: 0 auto;
  display: block;
  border: 3px solid #f0e6f3;
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: licenseSpin .8s linear infinite;
}

.license__check {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(18, 183, 169, .28);
  animation: licensePop .38s cubic-bezier(.2, .9, .25, 1.2) both;
}

.license__check .ic { width: 30px; height: 30px; }

.license__progress {
  width: 100%;
  height: 4px;
  margin: 20px 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: #f0ebf2;
}

.license__progress i {
  display: block;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: var(--purple);
  animation: licenseProgress 1.1s ease-in-out infinite;
}

.license__fallback {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: #b93146;
}

.license__fallback button {
  border: 0;
  padding: 0;
  color: var(--purple);
  background: none;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.license__card.is-busy { pointer-events: none; }

@keyframes licenseCardIn {
  from { opacity: 0; transform: translateY(10px) scale(.99); }
  to { opacity: 1; transform: none; }
}

@keyframes licenseSpin {
  to { transform: rotate(360deg); }
}

@keyframes licensePop {
  from { opacity: 0; transform: scale(.65); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes licenseProgress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

@media (max-height: 700px) {
  .screen--license { padding-top: 14px; padding-bottom: 14px; }
  .license { gap: 13px; }
  .license__card { padding-top: 19px; padding-bottom: 18px; }
  .license__icon { width: 44px; height: 44px; margin-bottom: 11px; border-radius: 14px; }
  .license__icon .ic { width: 22px; height: 22px; }
  .license__card h1 { font-size: 21px; }
  .license__lead { margin-bottom: 14px; }
  .license__note { margin-top: 12px; padding-top: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .license__card,
  .license__check { animation: none; }
  .license__spinner { animation-duration: 1.8s; }
  .license__progress i { animation-duration: 2.2s; }
}
