@import url("login-frame.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.payperts-login {
  font-family: Manrope, "Segoe UI", Roboto, sans-serif;
  color: var(--pp-text);
  background: var(--pp-navy);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-wrap: anywhere;
}

.payperts-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.payperts-skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 3;
  background: #fff;
  color: var(--pp-blue);
  padding: 0.6rem 1rem;
}

.payperts-skip:focus {
  left: 1rem;
  top: 1rem;
  outline: 2px solid var(--pp-focus);
  outline-offset: 2px;
}

.payperts-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 3rem);
  min-height: calc(100dvh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.payperts-login-langs {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding:
    max(1rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    0
    max(1.25rem, env(safe-area-inset-left));
  text-align: right;
  font-size: 0.85rem;
  font-weight: 600;
}

.payperts-login-langs a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0.2rem 0.35rem;
  color: #fff;
  text-decoration: none;
}

.payperts-login-langs a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.payperts-login-langs a[aria-current="true"] {
  color: #7ee8e4;
}

.payperts-login-langs span {
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0.35rem;
}

@media (max-width: 420px) {
  .payperts-stage {
    padding:
      0.75rem
      max(0.75rem, env(safe-area-inset-right))
      max(0.75rem, env(safe-area-inset-bottom))
      max(0.75rem, env(safe-area-inset-left));
  }
}

@media (max-height: 620px) {
  .payperts-stage {
    align-items: flex-start;
  }

  .payperts-tagline {
    margin-bottom: 1rem;
  }
}
