/* ===== 三区域滑动布局（封面 + 注册面板 + 登录面板）===== */
.yls-overlay {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.yls-overlay.yls-visible { opacity: 1; }
.yls-overlay.yls-closing { opacity: 0; }

.yls-dialog {
    position: relative;
    width: 800px;
    height: 500px;
    overflow: hidden;
    border-radius: var(--yls-radius, 12px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.03);
    background: #fff;
    transform: translateY(-20px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.yls-visible .yls-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.yls-closing .yls-dialog {
    transform: translateY(10px) scale(0.98);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== 两个面板并排 ===== */
.yls-panels {
    position: absolute;
    inset: 0;
    display: flex;
}
.yls-panel {
    width: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.yls-panel-body {
    flex: 1;
    padding: 0 30px;
    position: relative;
}

.yls-panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 50px;
}
.yls-panel-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ls-text, #1f2937);
    letter-spacing: -0.01em;
}

.yls-panel-footer {
    line-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 12px;
    color: var(--ls-text-muted, #9ca3af);
}
.yls-panel-footer a,
.yls-panel-footer span {
    color: var(--ls-text-muted, #9ca3af);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.yls-panel-footer a:hover,
.yls-panel-footer span:hover,
.yls-panel-footer .yls-footer-link:hover {
    color: var(--ls-primary, #3b82f6);
}
.yls-panel-footer i {
    font-size: 15px;
}

/* ===== 封面遮罩 ===== */
.yls-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    z-index: 2;
    background-size: cover;
    background-position: center;
    border-radius: var(--yls-radius, 12px) 0 0 var(--yls-radius, 12px);
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1), border-radius 0.35s cubic-bezier(0.65, 0, 0.35, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.yls-dialog.yls-mode-register .yls-cover {
    transform: translateX(100%);
    border-radius: 0 var(--yls-radius, 12px) var(--yls-radius, 12px) 0;
}

.yls-cover-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 100px 30px 0;
    text-align: center;
}
.yls-cover-logo {
    max-width: 180px;
    max-height: 50px;
}
.yls-cover-logo-svg {
    height: 50px;
}
.yls-cover-logo-svg svg {
    height: 100%;
    width: auto;
}
.yls-cover-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
    text-align: center;
}
.yls-cover-slogan {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 22px;
    white-space: pre-wrap;
    word-break: break-word;
}
.yls-cover-switch {
    margin-top: 10px;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;
    color: #fff;
    padding: 8px 30px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 2px;
}
.yls-cover-switch:hover {
    background: rgba(255,255,255,0.15);
}

.yls-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    background: none;
    color: var(--ls-text-muted, #9ca3af);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 3;
}
.yls-close:hover {
    background: var(--ls-bg-hover, #f1f5f9);
    color: var(--ls-text, #1f2937);
}

/* ===== 返回按钮 ===== */
.yls-back-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: var(--ls-text-muted, #9ca3af);
    transition: all 0.15s ease;
    font-size: 14px;
    border: none;
    background: none;
    z-index: 2;
    gap: 4px;
}
.yls-back-btn.yls-back-visible {
    display: flex;
}
.yls-back-btn:hover {
    color: var(--ls-primary, #3b82f6);
}
.yls-back-btn i {
    font-size: 16px;
}

/* ===== 面板内视图切换 ===== */
.yls-view { display: none; }
.yls-view.yls-active { display: block; }

/* ===== Tab 导航 ===== */
.yls-tabs {
    position: relative;
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ls-border-light, #f3f4f6);
}
.yls-tab {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-text-muted, #9ca3af);
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
    user-select: none;
    white-space: nowrap;
    border: none;
    background: none;
}
.yls-tab:hover {
    color: var(--ls-text-secondary, #4b5563);
}
.yls-tab.yls-tab-active {
    color: var(--ls-primary, #3b82f6);
    font-weight: 600;
}
.yls-tabs .yls-tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: var(--ls-primary, #3b82f6);
    border-radius: 1px;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== 表单容器（绝对堆叠 + 动画） ===== */
.yls-forms {
    position: relative;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.yls-form {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.yls-form.yls-form-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 0.25s ease 0.08s, transform 0.25s ease 0.08s, visibility 0s linear 0s;
}

/* ===== 输入框（统一基础样式） ===== */
.yls-field {
    position: relative;
    margin-bottom: 16px;
}
.yls-fields {
    position: relative;
}
.yls-code-row {
    position: relative;
    margin-bottom: 16px;
}
.yls-input-wrap,
.yls-prefix-wrap,
.yls-code-row {
    position: relative;
    display: flex;
    align-items: center;
}
.yls-input-wrap input,
.yls-prefix-wrap input,
.yls-field input,
.yls-code-row input {
    width: 100%;
    height: 44px;
    padding: 0 15px 0 35px;
    border: 1.5px solid var(--ls-border, #e5e7eb);
    border-radius: 10px;
    background: var(--ls-bg, #f8fafc);
    font-size: 14px;
    color: var(--ls-text, #1f2937);
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.yls-field input::placeholder,
.yls-code-row input::placeholder {
    color: var(--ls-text-muted, #9ca3af);
}
.yls-field input:focus,
.yls-code-row input:focus {
    border-color: var(--ls-primary, #3b82f6);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

/* 图标 */
.yls-input-icon {
    position: absolute;
    left: 14px;
    color: var(--ls-text-muted, #9ca3af);
    font-size: 17px;
    pointer-events: none;
    transition: color 0.15s ease;
    z-index: 1;
}
.yls-input-wrap input:focus ~ .yls-input-icon,
.yls-code-row input:focus ~ .yls-input-icon {
    color: var(--ls-primary, #3b82f6);
}

/* 验证码行：右侧留出按钮空间 */
.yls-code-row input {
    padding-right: 120px;
}

/* 区号选择器：左侧留出按钮空间，隐藏图标 */
.yls-prefix-wrap input {
    padding-left: 80px;
}
.yls-prefix-wrap .yls-input-icon {
    display: none;
}

/* 无图标的裸输入（找回密码等） */
.yls-field > input {
    padding: 0 15px;
}

/* ===== 验证码按钮 ===== */
.yls-code-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-primary, #3b82f6);
    background: var(--ls-primary-light, #eff6ff);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.yls-code-btn:hover {
    background: rgba(59, 130, 246, 0.15);
}
.yls-code-btn:disabled {
    color: var(--ls-text-muted, #9ca3af);
    background: var(--ls-bg-hover, #f1f5f9);
    cursor: not-allowed;
}

/* ===== 区号选择器（内置样式） ===== */
.yls-prefix-wrap {
    position: relative;
    width: 100%;
}
.yls-prefix-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 4px 6px 4px 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ls-text, #1f2937);
    background: none;
    border: none;
    border-right: 1.5px solid var(--ls-border, #e5e7eb);
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    height: 26px;
    line-height: 26px;
    transition: color 0.15s ease;
}
.yls-prefix-btn i {
    font-size: 12px;
    color: var(--ls-text-muted, #9ca3af);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s ease;
}
.yls-prefix-btn.yls-prefix-open i {
    transform: rotate(180deg);
}
.yls-prefix-btn:hover {
    color: var(--ls-primary, #3b82f6);
}
.yls-prefix-btn:hover i {
    color: var(--ls-primary, #3b82f6);
}
.yls-prefix-static {
    cursor: default;
}
.yls-prefix-static i {
    display: none;
}
.yls-prefix-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ls-border, #e5e7eb);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
    padding: 4px;
    display: none;
}
.yls-prefix-dropdown.yls-prefix-open {
    display: block;
}
.yls-prefix-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ls-text, #1f2937);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s ease;
}
.yls-prefix-option:hover {
    background: var(--ls-bg-hover, #f1f5f9);
}
.yls-prefix-option-code {
    font-size: 12px;
    color: var(--ls-text-muted, #9ca3af);
    margin-left: 8px;
}
.yls-field:has(.yls-prefix-wrap) {
    z-index: 3;
    position: relative;
}
.yls-panel-body:has(.yls-prefix-open),
.yls-forms:has(.yls-prefix-open),
.yls-view:has(.yls-prefix-open) {
    overflow: visible;
}
.yls-forms:has(.yls-prefix-open) {
    position: relative;
    z-index: 10;
}

/* ===== 条款 ===== */
.yls-terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 12px;
    color: var(--ls-text-muted, #9ca3af);
    line-height: 1.5;
}
input.yls-terms-cb {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 1px 0 0;
    padding: 0;
    cursor: pointer;
    accent-color: var(--ls-primary, #3b82f6);
    flex-shrink: 0;
}
.yls-terms a {
    color: var(--ls-primary, #3b82f6);
    text-decoration: none;
}
.yls-terms a:hover {
    text-decoration: underline;
}
.yls-terms.yls-shake {
    animation: ylsShake 0.4s ease;
}
@keyframes ylsShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* ===== 主按钮 ===== */
.yls-submit {
    width: 100%;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: var(--ls-primary, #3b82f6);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}
.yls-submit:hover {
    background: var(--ls-primary-hover, #2563eb);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
.yls-submit:active {
    transform: translateY(0);
    box-shadow: none;
}
.yls-submit.yls-loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ===== 分割线 ===== */
.yls-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
}
.yls-divider::before,
.yls-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ls-border-light, #f3f4f6);
}
.yls-divider span {
    font-size: 12px;
    color: var(--ls-text-muted, #9ca3af);
    white-space: nowrap;
}

/* ===== 社交登录 ===== */
.yls-social {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}
.yls-social-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--ls-bg, #f8fafc);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 19px;
    border: 1px solid var(--ls-border-light, #f3f4f6);
    color: var(--ls-text-secondary, #4b5563);
}
.yls-social-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}
.yls-social-tip {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7f7;
    border: 1px solid #fee2e2;
    color: #b91c1c;
    font-size: 12px;
    line-height: 1.7;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 160px;
    overflow-y: auto;
    display: none;
}
.yls-social-tip:not(:empty) {
    display: block;
    margin: 12px 0;
}

/* ===== 扫码面板 ===== */
.yls-scan-tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 20px;
}
.yls-scan-tab {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ls-text-muted, #9ca3af);
    background: var(--ls-bg, #f8fafc);
    border: 1px solid var(--ls-border-light, #f3f4f6);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.yls-scan-tab:hover {
    color: var(--ls-text-secondary, #4b5563);
    border-color: var(--ls-border, #e5e7eb);
}
.yls-scan-tab.yls-scan-tab-active {
    color: var(--ls-primary, #3b82f6);
    background: var(--ls-primary-light, #eff6ff);
    border-color: rgba(59, 130, 246, 0.2);
}
.yls-scan-wrap {
    text-align: center;
}
.yls-scan-qr {
    width: 130px;
    height: 130px;
    margin: 0 auto 14px;
    border-radius: 12px;
    background: var(--ls-bg, #f8fafc);
    border: 1px solid var(--ls-border-light, #f3f4f6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.yls-scan-qr img,
.yls-scan-qr canvas {
    width: 110px;
    height: 110px;
}
.yls-scan-qr .yls-scan-expired {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ls-text-muted, #9ca3af);
    font-size: 13px;
    cursor: pointer;
}
.yls-scan-qr .yls-scan-expired i {
    font-size: 28px;
}
.yls-scan-tip {
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
}
.yls-scan-code {
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
    margin-top: 8px;
}
.yls-scan-code .yls-code-number {
    font-weight: 700;
    color: var(--ls-primary, #3b82f6);
}

/* 验证码登录面板 */
.yls-code-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.yls-code-qrcode {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--ls-border-light, #f3f4f6);
}
.yls-code-qrcode img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.yls-code-label {
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
}
.yls-code-number {
    font-weight: 700;
    color: var(--ls-primary, #3b82f6);
}

/* ===== 找回密码 ===== */
.yls-forgot-step {
    display: none;
}
.yls-forgot-step.yls-forgot-step-active {
    display: block;
    animation: ylsSlideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes ylsSlideLeft {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
.yls-forgot-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ls-text, #1f2937);
    margin-bottom: 6px;
}
.yls-forgot-hint {
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
    text-align: center;
    padding: 20px;
}
.yls-forgot-masked {
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
    margin-bottom: 16px;
}

/* 步骤指示器 */
.yls-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 24px;
}
.yls-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ls-border, #e5e7eb);
    transition: all 0.2s ease;
}
.yls-step-dot.yls-step-active {
    background: var(--ls-primary, #3b82f6);
    width: 24px;
    border-radius: 4px;
}
.yls-step-dot.yls-step-done {
    background: var(--ls-primary, #3b82f6);
    opacity: 0.4;
}
.yls-step-line {
    width: 20px;
    height: 1px;
    background: var(--ls-border-light, #f3f4f6);
}

/* 验证码输入框组 */
.yls-code-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.yls-code-input {
    width: 44px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    color: var(--ls-text, #1f2937);
    border: 1.5px solid var(--ls-border, #e5e7eb);
    border-radius: 10px;
    background: var(--ls-bg, #f8fafc);
    outline: none;
    transition: all 0.15s ease;
    caret-color: var(--ls-primary, #3b82f6);
}
.yls-code-input:focus {
    border-color: var(--ls-primary, #3b82f6);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}
.yls-forgot-resend {
    text-align: center;
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
    margin-bottom: 24px;
}
.yls-forgot-resend .yls-forgot-resend-btn {
    color: var(--ls-primary, #3b82f6);
    cursor: pointer;
    font-weight: 500;
    border: none;
    background: none;
    font-size: 13px;
}
.yls-forgot-resend .yls-forgot-resend-btn:disabled {
    color: var(--ls-text-muted, #9ca3af);
    cursor: not-allowed;
}

/* 密码强度 */
.yls-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}
.yls-strength-bars {
    display: flex;
    gap: 4px;
    flex: 1;
}
.yls-strength-bar {
    height: 3px;
    flex: 1;
    border-radius: 2px;
    background: var(--ls-border-light, #f3f4f6);
    transition: background 0.2s ease;
}
.yls-strength-bar.yls-strength-active { background: var(--ls-danger, #ef4444); }
.yls-strength[data-level="2"] .yls-strength-bar.yls-strength-active { background: var(--ls-warning, #f59e0b); }
.yls-strength[data-level="3"] .yls-strength-bar.yls-strength-active { background: var(--ls-success, #10b981); }
.yls-strength-text {
    font-size: 12px;
    color: var(--ls-text-muted, #9ca3af);
    min-width: 28px;
}

/* 成功状态 */
.yls-forgot-success {
    text-align: center;
    padding: 20px 0;
}
.yls-forgot-success .yls-success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--ls-success-light, #ecfdf5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--ls-success, #10b981);
}
.yls-forgot-success .yls-success-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ls-text, #1f2937);
    margin-bottom: 6px;
}
.yls-forgot-success .yls-success-desc {
    font-size: 13px;
    color: var(--ls-text-muted, #9ca3af);
    margin-bottom: 24px;
}

/* ===== 注册视图 ===== */
.yls-reg-methods {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--ls-border-light, #f3f4f6);
    position: relative;
}
.yls-reg-method {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--ls-text-muted, #9ca3af);
    cursor: pointer;
    transition: color 0.2s ease;
    border: none;
    background: none;
}
.yls-reg-method.yls-reg-method-active {
    color: var(--ls-primary, #3b82f6);
    font-weight: 600;
}
.yls-reg-methods .yls-tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    background: var(--ls-primary, #3b82f6);
    border-radius: 1px 1px 0 0;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1), width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.yls-reg-forms {
    position: relative;
}
.yls-reg-form {
    display: none;
}
.yls-reg-form.yls-reg-form-active {
    display: block;
}

/* 邀请码获取按钮 */
.yls-get-invite {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: var(--ls-primary, #3b82f6);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.yls-get-invite:hover {
    background: var(--ls-primary-hover, #2563eb);
}
.yls-get-invite:disabled {
    background: var(--ls-text-muted, #9ca3af);
    cursor: not-allowed;
}
.yls-field:has(.yls-get-invite) input {
    padding-right: 100px;
}

/* ===== 注册禁用提示 ===== */
.yls-disabled-tip {
    color: var(--ls-text-muted, #9ca3af) !important;
    cursor: default !important;
}
.yls-disabled-tip:hover {
    color: var(--ls-text-muted, #9ca3af) !important;
}

/* ===== 内页单栏模式 ===== */
.yls-inline {
    width: 400px;
    height: auto;
    margin: 0 auto;
    box-shadow: none;
    background: none;
    transform: none;
    opacity: 1;
}
.yls-inline .yls-cover { display: none; }
.yls-inline .yls-panels { position: static; display: block; }
.yls-inline .yls-panel { width: 100%; display: none; }
.yls-inline .yls-panel-login { display: flex; }
.yls-inline.yls-mode-register .yls-panel-login { display: none; }
.yls-inline.yls-mode-register .yls-panel-register { display: flex; }
.yls-inline .yls-panel-body { padding: 0; }

/* ===== Toast ===== */
.yls-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100000;
    padding: 10px 20px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.yls-toast.yls-toast-show { opacity: 1; }
.yls-toast-error { background: var(--ls-danger, #ef4444); }
.yls-toast-success { background: var(--ls-success, #10b981); }
.yls-toast-warning { background: #ff9800; }
