/* Shared authentication fields for the desktop dialog and mobile registration. */
.gate-auth *, .gate-auth-mobile * { box-sizing: border-box; }
.gate-auth [hidden], .gate-auth-mobile [hidden] { display: none !important; }
.gate-auth label, .gate-auth-mobile label {
    display: block; margin: 0 0 17px; color: #181818; font-size: 13px;
}
.gate-auth-field {
    display: flex; align-items: center; width: 100%; height: 40px; margin-top: 18px;
    padding: 0 19px; border: 0; border-radius: 25px; background: #f8f8fa;
}
.gate-auth-field:focus-within { outline: 1px solid #80adff; }
.gate-auth-field input {
    flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 !important;
    border: 0 !important; outline: 0; box-shadow: none !important;
    background: transparent !important; color: #222 !important; font-size: 14px;
    -webkit-text-fill-color: #222 !important;
}
.gate-auth-field input::placeholder { color: #929daa; opacity: 1; }
.gate-auth-eye {
    flex: none; width: 27px; height: 38px; padding: 0; border: 0;
    background: transparent; color: #5c636e; cursor: pointer; font-size: 20px;
}
.gate-auth-primary, .gate-auth-demo {
    display: block; width: 100%; height: 40px; border: 0; border-radius: 24px;
    background: #075ff0; color: #fff; font-size: 15px; text-align: center; cursor: pointer;
}
.gate-auth-primary:disabled, .gate-auth-demo:disabled { opacity: .6; cursor: wait; }
.gate-auth-primary.is-loading::after, .gate-auth-demo.is-loading::after {
    content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 8px;
    vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent;
    border-radius: 50%; animation: gate-auth-spin .7s linear infinite;
}
@keyframes gate-auth-spin { to { transform: rotate(360deg); } }
.gate-auth-demo { margin-top: 20px; white-space: normal; line-height: 1.3; }
.gate-auth-notice {
    display: none; margin: 8px 0; color: #d0313b; font-size: 12px; line-height: 1.5;
}
.gate-auth-notice:not(:empty) { display: block; }
.gate-auth-link { color: #0064f5; text-decoration: none; cursor: pointer; }
.gate-auth-meta button.gate-auth-link {
    padding: 0; border: 0; background: transparent; color: #aaa; font: inherit;
}
.gate-auth-dialog[hidden] { display: none !important; }
.gate-auth-dialog {
    position: fixed; z-index: 2000; inset: 0; display: flex;
    align-items: center; justify-content: center; padding: 12px;
    background: rgba(0, 0, 0, .53);
}
.gate-auth-panel {
    position: relative; width: min(480px, 100%); max-height: min(95vh, 720px);
    overflow: auto; padding: 17px 16px 16px; border-radius: 10px;
    background: #fff; box-shadow: 0 14px 40px rgba(0, 0, 0, .15);
}
.gate-auth-title {
    margin: 0 35px 30px; color: #aaa; font-size: 19px;
    font-weight: 400; text-align: center;
}
.gate-auth-close {
    position: absolute; right: 12px; top: 9px; width: 34px; height: 34px;
    border: 0; background: transparent; color: #8a929e; cursor: pointer;
    font-size: 23px; font-weight: 300;
}
.gate-auth-dialog .gate-auth-section { margin-bottom: 26px; }
.gate-auth-dialog .gate-auth-section label { margin: 0; }
.gate-auth-dialog .gate-auth-section .gate-auth-field { margin-top: 18px; }
.gate-auth-dialog .gate-auth-login label + .gate-auth-field { margin-top: 17px; }
.gate-auth-dialog .gate-auth-login .gate-auth-section { margin-bottom: 30px; }
.gate-auth-dialog .gate-auth-meta {
    display: flex; justify-content: space-between; align-items: center;
    margin: -1px 0 21px; color: #aaa; font-size: 12px;
}
.gate-auth-dialog .gate-auth-primary { margin-top: 0; }
.gate-auth-dialog .gate-auth-register .gate-auth-section { margin-bottom: 25px; }
.gate-auth-dialog .gate-auth-register .gate-auth-primary { margin-top: 8px; }
body.gate-auth-open { overflow: hidden !important; }
@media (max-width: 700px) {
    .gate-auth-dialog { display: none !important; }
}
.gate-auth-mobile, html:has(body.gate-auth-mobile) {
    min-height: 100vh; background: #fff !important; color: #191919;
    font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.gate-auth-mobile .gate-auth-mobile-inner {
    width: min(100%, 450px); min-height: 100vh; margin: 0 auto;
    padding: 0 35px 60px; border-left: 1px solid #e1eef3;
    border-right: 1px solid #e1eef3; background: #fff;
}
.gate-auth-mobile .gate-auth-mobile-head {
    display: flex; align-items: center; justify-content: space-between;
    height: 54px; margin: 0 -12px;
}
.gate-auth-mobile .gate-auth-back {
    display: grid; place-items: center; width: 44px; height: 44px; color: #373d44;
    text-decoration: none; font-size: 30px; font-weight: 200;
}
.gate-auth-mobile .gate-auth-flag {
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gate-auth-mobile .gate-auth-flag .tm-auth-flag-img {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}
.gate-auth-mobile .gate-auth-logo {
    display: block; width: 188px; height: 94px; margin: 2px auto 0;
    object-fit: contain; background: #080808;
}
.gate-auth-mobile .gate-auth-mobile-form { margin-top: 2px; }
.gate-auth-mobile .gate-auth-mobile-form .gate-auth-section { margin-bottom: 23px; }
.gate-auth-mobile .gate-auth-mobile-form label {
    margin-bottom: 19px; font-size: 14px; font-weight: 400;
}
.gate-auth-mobile .gate-auth-mobile-form .gate-auth-field {
    height: 48px; margin-top: 0; padding: 0 24px;
}
.gate-auth-mobile .gate-auth-mobile-form .gate-auth-primary {
    height: 46px; margin-top: 45px;
}
