html,
body {
    height: 100%;
    touch-action: manipulation;
    -ms-touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.auth-page {
    margin: 0;
    padding-top: 0 !important;
    min-height: 100%;
    background: #fff7ef;
    color: #1f1f1f;
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans JP", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
}

body.auth-scene,
body.auth-scene .auth-shell,
.auth-scene .auth-page-inner {
    background: #fff7ef;
}

.auth-page a,
.auth-page a:hover,
.auth-page a:focus {
    text-decoration: none;
}

.auth-page .form-group {
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
}

.auth-page .form-control {
    width: 100%;
}

.auth-shell {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    background: #fff7ef;
    overflow: visible;
}

.auth-page-inner {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    padding: 12px 24px 28px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.auth-lang {
    position: absolute;
    top: 10px;
    right: 16px;
    display: flex;
    gap: 4px;
    z-index: 3;
}

.auth-lang a {
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #8a8a8a;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
}

.auth-lang a.active {
    color: #ff4d4f;
    border-color: #ffd0c8;
    background: #fff5f3;
    font-weight: 600;
}

.auth-hero {
    position: relative;
    padding-top: 22px;
    margin-bottom: 4px;
    text-align: center;
}

.auth-scene .auth-page-inner {
    max-width: 430px;
    padding: 8px 0 36px;
}

.auth-scene .auth-hero {
    position: relative;
    height: auto;
    padding-top: 28px;
    margin: 0;
    overflow: visible;
}

.auth-title-img {
    position: relative;
    z-index: 2;
    display: block;
    width: 88%;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
}

.auth-wheel-wrap {
    width: 100%;
    height: auto;
    margin: 0;
    overflow: visible;
    display: block;
    pointer-events: none;
}

.auth-wheel {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

.auth-scene .auth-title-img {
    position: relative;
    z-index: 2;
    width: 72%;
    max-width: none;
    margin: 0 auto -12px;
}

.auth-scene .auth-wheel-wrap {
    position: relative;
    width: 100%;
    height: auto;
    margin: -96px 0 -168px;
    overflow: visible;
}

.auth-register .auth-wheel-wrap {
    margin-bottom: -132px;
}

.auth-scene .auth-wheel {
    position: static;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
    transform: none;
}

.auth-form {
    position: relative;
    z-index: 1;
    margin-top: 0;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-scene .auth-form {
    position: relative;
    z-index: 2;
    margin-top: 0;
    padding: 0 24px;
}

.auth-scene .auth-field {
    margin-bottom: 14px;
}

.auth-scene .auth-submit {
    margin-top: 24px;
}

.auth-label {
    display: block;
    margin-bottom: 8px;
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 500;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .auth-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    color: #c4c4c4;
    pointer-events: none;
}

.auth-input-wrap input.form-control {
    height: 50px;
    border: 1px solid #eee3d8;
    border-radius: 25px;
    background: #fff;
    box-shadow: none;
    padding: 0 44px;
    font-size: 16px;
    color: #333;
}

.auth-input-wrap input.form-control:focus {
    border-color: #ffb199;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.08);
}

.auth-input-wrap input.form-control::-webkit-input-placeholder {
    color: #c8c8c8;
}

.auth-eye {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-eye.is-visible {
    color: #ff7a59;
}

.auth-submit {
    display: block;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 25px;
    background: linear-gradient(90deg, #ffb347 0%, #ff6a3d 48%, #ff4d6d 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(255, 106, 61, 0.28);
}

.auth-submit:hover,
.auth-submit:focus {
    color: #fff;
    opacity: 0.96;
}

.auth-submit:active {
    transform: scale(0.99);
}

.auth-switch {
    margin-top: 18px;
    text-align: center;
    color: #9a9a9a;
    font-size: 13px;
}

.auth-switch a {
    color: #9a9a9a;
}

.auth-switch span {
    color: #ff6a3d;
    font-weight: 600;
}

.auth-page .has-error .form-control,
.auth-page .n-invalid {
    border-color: #ff8a80;
}

.auth-page .msg-box,
.auth-page .help-block {
    display: none;
}

body.auth-page #toast-container.toast-top-center {
    top: 72px;
    right: 0;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
    pointer-events: none;
}

body.auth-page #toast-container > div {
    pointer-events: auto;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 8px;
    opacity: 1;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(80, 40, 20, 0.16);
    background-position: 14px center;
}

body.auth-page #toast-container .toast-close-button {
    display: none;
}

.auth-toast-pop {
    position: absolute;
    top: 46%;
    left: 28px;
    right: 28px;
    z-index: 30;
    padding: 14px 18px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(80, 40, 20, 0.18);
    color: #2b2b2b;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.auth-toast-pop.is-show {
    opacity: 1;
    transform: none;
}

.auth-toast-pop.auth-toast-success {
    color: #fff;
    background: linear-gradient(90deg, #ffb347 0%, #ff6a3d 48%, #ff4d6d 100%);
}

.auth-toast-pop.auth-toast-error {
    color: #c2410c;
    background: #fff;
    border: 1px solid #ffd0b8;
}

.auth-dialog {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 40;
    align-items: center;
    justify-content: center;
    background: rgba(40, 20, 10, 0.35);
}

.auth-dialog.is-show {
    display: flex;
}

.auth-dialog-card {
    width: 220px;
    padding: 28px 20px 24px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(80, 40, 20, 0.18);
    text-align: center;
    transform: translateY(8px) scale(0.96);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.auth-dialog.is-show .auth-dialog-card {
    opacity: 1;
    transform: none;
}

.auth-dialog-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, #ffb347 0%, #ff6a3d 48%, #ff4d6d 100%);
    box-shadow: 0 8px 18px rgba(255, 90, 70, 0.28);
}

.auth-dialog-check:after {
    content: "";
    width: 14px;
    height: 22px;
    margin-top: -4px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.auth-dialog-card strong {
    display: block;
    color: #3a3a3a;
    font-size: 16px;
    font-weight: 600;
}

body.auth-page .layui-layer-loading,
body.auth-page .layui-layer-loading + .layui-layer-shade {
    display: none !important;
}

@media (max-width: 360px) {
    .auth-scene .auth-form {
        padding: 0 22px;
    }
}
