html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
}

#page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  max-height: 100vh;
  width: 100%;
  padding: 30px 20px;
  box-sizing: border-box;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

#page::before {
  content: "";
  position: fixed;
  top:0;
  left:0;
  height: 100%;
  width: 100%;
  inset: 0;
  background-image: inherit;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 0;
}

#page .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 600px;
  height: fit-content;
  max-height: 90vh;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: visible;
}

#login-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#login-logo {
  width: 100%;
  text-align: center;
}

#login-logo a {
  padding: 20px 5px;
  display: inline-block;
}

#login-main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#login-main > #content {
  align-self: center;
  width: 100%;
  max-width: 400px;
}

#login-main .frame-type-felogin_login {
  background: transparent;
  padding: 0;
}

#login-secondary {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

#login-secondary .login-secondary-item,
#login-secondary .login-secondary-item > * {
  width: 100%;
}

#login-secondary .login-secondary-toggle {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  cursor: pointer;
}

#login-secondary .login-secondary-toggle > * {
  margin: 0;
  padding-top: 10px;
  color: var(--color-menu);
  font-size: 12px;
  line-height: 1.3;
  font-weight: bold;
}

#login-secondary .login-secondary-panel {
  width: 100%;
  box-sizing: border-box;
  margin: 40px 0;
  padding: 0 20px 20px 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

#login-secondary .login-secondary-panel[hidden] {
  display: none;
}

#page #meta-menu {
  margin: 0;
  text-align: center;
}

#page #meta-menu ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

#page #meta-menu li {
  display: block;
}

#page #meta-menu a {
  font-weight: bold;
  color: #ffffff;
}

@media only screen and (max-width: 619px) {
  #page {
    padding: 16px !important;
  }
}
