/* 登录/注册弹窗 — 深色原型样式（scoped 于 .layui-layer.auth-modal） */
.layui-layer.custom-layer.auth-modal {
    width: 420px !important;
    max-width: calc(100vw - 32px);
    background: transparent !important;
    box-shadow: none !important;
}

.layui-layer.custom-layer.auth-modal .layui-layer-content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    background: transparent;
    padding: 0;
}

.layui-layer.custom-layer.auth-modal .layui-layer-setwin .layui-layer-close {
    color: #fff;
    opacity: 0.85;
    right: 4px;
    top: 4px;
}

.layui-layer.custom-layer.auth-modal .layui-layer-setwin .layui-layer-close:hover {
    opacity: 1;
}

.auth-modal-wrap {
    box-sizing: border-box;
}

.auth-modal-card {
    box-sizing: border-box;
    padding: 28px 24px 24px;
    border-radius: 12px;
    background: #1c1f26;
    color: #fff;
}

.auth-modal-brand {
    margin-bottom: 20px;
    text-align: left;
}

.auth-modal-brand img {
    display: block;
    width: auto;
    height: 20px;
}

.auth-modal-head {
    margin-bottom: 20px;
}

.auth-modal-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.auth-modal-desc {
    margin: 0;
    color: #9ca3af;
    font-size: 13px;
    line-height: 1.55;
}

.auth-modal-body {
    padding: 0;
}

.auth-field {
    position: relative;
    margin-bottom: 12px;
}

.auth-field-pwd .auth-input {
    padding-right: 44px;
}

.auth-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #11131a;
    color: #fff;
    font-size: 14px;
    line-height: 44px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input::placeholder {
    color: #6b7280;
}

.auth-input:focus {
    border-color: rgba(255, 196, 0, 0.45);
    box-shadow: 0 0 0 2px rgba(255, 196, 0, 0.12);
}

.auth-pwd-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #9ca3af;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-pwd-toggle:hover,
.auth-pwd-toggle:focus {
    color: #ffc400;
    outline: none;
}

.auth-pwd-toggle svg {
    display: block;
}

.auth-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 16px;
}

.auth-link-yellow {
    color: #ffc400 !important;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.auth-link-yellow:hover,
.auth-link-yellow:focus {
    color: #ffd633 !important;
    text-decoration: none;
}

.auth-link-bottom {
    display: block;
    margin-top: 16px;
    text-align: center;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.auth-remember-text {
    color: #9ca3af;
    font-size: 13px;
    line-height: 1;
}

.auth-modal .input-switch.auth-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.auth-modal .input-switch.auth-switch label {
    position: relative;
    display: block;
    width: 44px;
    height: 24px;
    margin: 0;
    border-radius: 999px;
    background: #3a3d46;
    cursor: pointer;
    transition: background 0.2s ease;
}

.auth-modal .input-switch.auth-switch i {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    margin: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: margin-left 0.2s ease;
}

.auth-modal .input-switch.auth-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-modal .input-switch.auth-switch input:checked + label {
    background: #22c55e;
}

.auth-modal .input-switch.auth-switch input:checked + label i {
    margin-left: 20px;
}

.auth-submit-btn {
    display: block;
    width: 100%;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #3a3d46;
    color: #9ca3af;
    font-size: 15px;
    font-weight: 600;
    line-height: 44px;
    text-align: center;
    cursor: not-allowed;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.auth-submit-btn.is-active:not(:disabled) {
    background: #ffc400;
    color: #111;
    cursor: pointer;
}

.auth-submit-btn.is-active:not(:disabled):hover {
    background: #ffb800;
}

.auth-submit-btn.is-active:not(:disabled):active {
    transform: translateY(1px);
}

.auth-alert-danger {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .layui-layer.custom-layer.auth-modal {
        width: calc(100vw - 24px) !important;
    }

    .auth-modal-card {
        padding: 22px 16px 18px;
        border-radius: 10px;
    }

    .auth-modal-title {
        font-size: 18px;
    }

    .auth-modal-desc {
        font-size: 12px;
    }

    .auth-options-row {
        flex-wrap: wrap;
        gap: 10px;
    }

    .auth-remember {
        margin-left: auto;
    }
}
