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

body {
  background: #050505;
}

.sign-scene {
  --sign-accent: #c8ff00;
  --sign-panel: #09090a;
  --sign-field: #171719;
  --sign-border: #303034;
  --sign-text: #f4f4f5;
  --sign-muted: #8b8b92;
  align-items: center;
  box-sizing: border-box;
  display: flex;
  inset: 0;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: fixed;
  width: 100%;
  z-index: 9999;
}

.sign-site-preview {
  border: 0;
  height: 100%;
  inset: 0;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.sign-page-backdrop {
  background: rgba(0, 0, 0, .76);
  inset: 0;
  position: absolute;
  z-index: 1;
}

.sign-modal-shell {
  background: var(--sign-panel);
  border: 1px solid #1c1c1f;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .58);
  box-sizing: border-box;
  color: var(--sign-text);
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 48px 44px 30px;
  position: relative;
  width: min(450px, calc(100vw - 48px));
  z-index: 2;
}

.sign-dialog-close {
  align-items: center;
  color: #8b8b92;
  display: flex;
  font-size: 28px;
  font-weight: 300;
  height: 40px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  text-decoration: none;
  top: 14px;
  transition: color .2s ease, background-color .2s ease;
  width: 40px;
  z-index: 5;
}

.sign-dialog-close:hover,
.sign-dialog-close:focus-visible {
  background: #18181b;
  color: #fff;
  outline: none;
}

.sign-dialog-intro {
  margin-bottom: 22px;
}

.sign-dialog-accent {
  background: var(--sign-accent);
  display: block;
  height: 2px;
  margin-bottom: 22px;
  width: 40px;
}

.sign-dialog-intro h1 {
  color: var(--sign-text);
  font-size: 30px;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 6px;
}

.sign-dialog-intro p {
  color: var(--sign-muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.sign-modal-shell .container-sign {
  display: block;
  min-height: 0;
  padding: 0;
  width: 100%;
}

.sign-modal-shell .wp-sign {
  background: transparent;
  display: block;
  min-height: 0;
  text-align: left;
  width: 100%;
}

.sign-modal-shell .sign-box {
  display: block;
  margin: 0;
  min-height: 0;
  width: 100%;
}

.sign-modal-shell .site-logo {
  display: none;
}

.sign-modal-shell .sign-box .sb-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.sign-modal-shell .wb-tab-navs {
  margin: 0 0 20px;
}

.sign-modal-shell .wb-tab-navs::before {
  background: var(--sign-border);
  left: 0;
  right: 0;
}

.sign-modal-shell .wb-tab-navs .tn-item {
  padding: 0;
}

.sign-modal-shell .wb-tab-navs .tn-item a {
  color: var(--sign-muted);
  padding: 2px 0 12px;
}

.sign-modal-shell .wb-tab-navs .tn-item.current a {
  color: var(--sign-text);
}

.sign-modal-shell .wb-tab-navs .tn-item.current a::after {
  background: var(--sign-accent);
}

.sign-modal-shell .sign-box .form-group {
  margin: 0 0 16px;
  padding: 0;
}

.sign-modal-shell .sign-box .form-control {
  background: var(--sign-field);
  border: 1px solid var(--sign-border);
  border-radius: 3px;
  color: var(--sign-text);
  height: 46px;
  padding: 0 12px;
}

.sign-modal-shell .sign-box .form-control:focus {
  border-color: #66666c;
  box-shadow: none;
  outline: none;
}

.sign-modal-shell .sign-box .form-control::placeholder {
  color: #77777e;
  opacity: 1;
}

.sign-modal-shell .sign-box .view-psw {
  height: 46px;
  line-height: 46px;
  right: 0;
  top: 0;
  width: 44px;
}

.sign-modal-shell .sign-box .wb-btn,
.sign-modal-shell .sign-box .btn-primary {
  background: var(--sign-accent);
  border: 1px solid var(--sign-accent);
  border-radius: 3px;
  color: #050505;
  font-weight: 600;
  height: 46px;
  line-height: 44px;
}

.sign-modal-shell .sign-box .wb-btn:hover,
.sign-modal-shell .sign-box .btn-primary:hover {
  background: #d5ff36;
  border-color: #d5ff36;
  color: #050505;
}

.sign-modal-shell .sign-box .wb-form-tips {
  margin-left: 0;
}

.sign-modal-shell .remembermetext,
.sign-modal-shell .tipinfo,
.sign-modal-shell .sb-ft {
  color: var(--sign-muted);
}

.sign-modal-shell a,
.sign-modal-shell .sb-ft a,
.sign-modal-shell .tipinfo a {
  color: var(--sign-accent);
}

.sign-modal-shell .sb-ft {
  padding: 8px 0 0;
}

.sign-modal-shell .other-sign.just-one,
.sign-modal-shell .reg-ets {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.sign-modal-shell .other-sign {
  border-color: var(--sign-border);
}

.sign-modal-shell .oauth-items .oauth-item + .oauth-item::before {
  background: var(--sign-border);
}

.sign-modal-shell .wb-alert-bar {
  border-radius: 3px;
  margin-bottom: 14px;
}

@media (max-width: 600px) {
  .sign-scene {
    align-items: center;
    padding: 10px;
  }

  .sign-modal-shell {
    max-height: calc(100vh - 20px);
    max-height: calc(100svh - 20px);
    padding: 42px 22px 24px;
    width: calc(100vw - 20px);
  }

  .sign-dialog-close {
    right: 8px;
    top: 8px;
  }

  .sign-dialog-intro {
    margin-bottom: 18px;
  }

  .sign-dialog-accent {
    margin-bottom: 18px;
  }

  .sign-dialog-intro h1 {
    font-size: 26px;
  }
}
