/* ============ PC 官网登录弹窗 ============ */

/* ---------- 弹窗容器 ---------- */

.login-modal .el-dialog {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 30, 60, 0.22);
}

.login-modal .el-dialog__body {
    padding: 0;
}

.login-modal .el-dialog__header {
    display: none;
}

.login-modal__body {
    padding: 34px 38px 26px;
    box-sizing: border-box;
}

/* ---------- 弹窗头部 ---------- */

.login-modal__head {
    text-align: center;
    margin-bottom: 8px;
}

.login-modal__logo {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.login-modal__logo img {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 8px 20px rgba(47, 112, 244, 0.18);
}

.login-modal__head h3 {
    margin: 0;
    color: #10234a;
    font-size: 24px;
    font-weight: 800;
}

.login-modal__head p {
    margin: 8px 0 0;
    color: #7b8cb0;
    font-size: 13px;
    line-height: 1.6;
}

/* ---------- Tabs ---------- */

.login-tabs .el-tabs__nav-wrap::after {
    height: 1px;
    background: #e6edf7;
}

.login-tabs .el-tabs__item {
    height: 44px;
    line-height: 44px;
    font-size: 15px;
}

.login-tabs .el-tabs__item.is-active {
    color: #165DFC;
    font-weight: 700;
}

.login-tabs .el-tabs__active-bar {
    background-color: #165DFC;
    height: 3px;
    border-radius: 3px;
}

.login-tabs .el-form {
    padding-top: 16px;
}

.login-sms-form {
    padding-top: 18px;
}

.login-tabs .el-input__inner,
.login-sms-form .el-input__inner {
    border-radius: 10px;
    background: #f7faff;
    border-color: transparent;
}

.login-tabs .el-input__inner:hover,
.login-tabs .el-input__inner:focus,
.login-sms-form .el-input__inner:hover,
.login-sms-form .el-input__inner:focus {
    border-color: #165DFC;
    background: #ffffff;
}

/* ---------- 登录按钮 ---------- */

.login-submit {
    width: 100%;
    margin-top: 6px;
    border-radius: 10px;
    border-color: #165DFC;
    background: linear-gradient(90deg, #165DFC 0%, #4d8dff 100%);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 4px;
    box-shadow: 0 10px 24px rgba(47, 112, 244, 0.28);
}

.login-submit:hover,
.login-submit:focus {
    border-color: #4d8dff;
    background: linear-gradient(90deg, #165DFC 0%, #4d8dff 100%);
    opacity: 0.92;
}

/* ---------- 验证码行 ---------- */

.login-code-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.login-code-row .el-input {
    flex: 1;
}

.login-code-btn {
    width: 130px;
    flex-shrink: 0;
    border-radius: 10px;
    border-color: #165DFC;
    color: #165DFC;
    font-size: 13px;
    padding-left: 6px;
    padding-right: 6px;
}

.login-code-btn:hover,
.login-code-btn:focus {
    border-color: #4d8dff;
    color: #165DFC;
}

.login-code-btn.is-disabled {
    color: #aab8d4;
}

/* ---------- 底部链接 ---------- */

.login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px solid #eef2f9;
}

.login-links a {
    color: #6b7ea5;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.login-links a:hover {
    color: #165DFC;
}

.login-links__divider {
    color: #d4ddee;
}

/* ---------- 登录成功面板 ---------- */

.login-modal__success {
    padding: 30px 32px 26px;
    box-sizing: border-box;
}

.login-modal__success-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.demo-panel__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.demo-panel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #eef6ff;
    font-size: 22px;
}

.demo-panel__head h2 {
    margin: 0;
    color: #10234a;
    font-size: 19px;
    font-weight: 800;
}

.demo-panel__head p {
    margin: 4px 0 0;
    color: #7b8cb0;
    font-size: 13px;
}

.demo-panel__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.demo-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border: 1px solid #e6edf7;
    border-radius: 12px;
    background: #f9fbff;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.demo-entry:hover {
    border-color: #bcd4ff;
    box-shadow: 0 8px 20px rgba(84, 117, 167, 0.10);
    transform: translateY(-2px);
}

.demo-entry__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 10px;
    background: #eef6ff;
    font-size: 19px;
}

.demo-entry h3 {
    margin: 0;
    color: #10234a;
    font-size: 15px;
    font-weight: 700;
}

.demo-entry p {
    margin: 4px 0 0;
    color: #8b9ab9;
    font-size: 12px;
    line-height: 1.4;
}

.demo-entry__arrow {
    margin-left: auto;
    color: #b9c8e4;
    font-size: 14px;
}

.demo-account {
    margin-top: 16px;
}

.demo-account__site {
    padding: 13px 14px;
    border: 1px solid #e2ebfb;
    border-radius: 12px;
    background: #f7faff;
}

.demo-account__site + .demo-account__site {
    margin-top: 10px;
}

.demo-account__site h4 {
    margin: 0 0 8px;
    color: #10234a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.demo-account__item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
}

.demo-account__item + .demo-account__item {
    border-top: 1px dashed #dbe6f8;
    padding-top: 7px;
    margin-top: 7px;
}

.demo-account__label {
    width: 38px;
    flex-shrink: 0;
    color: #7b8cb0;
    font-size: 13px;
}

.demo-account code,
.demo-account__item a {
    flex: 1;
    min-width: 0;
    color: #1f4fb8;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.demo-account code {
    letter-spacing: 0.5px;
}

/* ---------- 点击验证码弹窗 ---------- */

.sms-captcha-popup {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sms-captcha-popup__mask {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(20, 34, 64, 0.55);
}

.sms-captcha-popup__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 16px;
    padding: 24px 26px 22px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(15, 30, 60, 0.28);
    animation: captcha-panel-in 0.25s ease;
}

@keyframes captcha-panel-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sms-captcha-popup__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.sms-captcha-popup__header h3 {
    margin: 0;
    color: #10234a;
    font-size: 19px;
    font-weight: 800;
}

.sms-captcha-popup__header p {
    margin: 5px 0 0;
    color: #8b9ab9;
    font-size: 13px;
}

.sms-captcha-popup__close {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 0;
    border-radius: 8px;
    background: #f2f6fc;
    color: #8b9ab9;
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.sms-captcha-popup__close:hover {
    background: #ffe9e4;
    color: #e05500;
}

.sms-captcha-popup__tip-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff7ec;
}

.sms-captcha-popup__tip-text {
    color: #9a6a1f;
    font-size: 14px;
    line-height: 1.5;
}

.sms-captcha-popup__link {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    color: #f5a03c;
    font-size: 13px;
    cursor: pointer;
}

.sms-captcha-popup__link:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 阿里云市场行为验证（客户端 SDK） */
.sms-captcha-popup__alimarket {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 14px 30px;
}

.sms-captcha-popup__alimarket-btn {
    min-width: 200px;
    height: 46px;
    padding: 0 30px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9d3c, #f2730a);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(242, 115, 10, 0.28);
    transition: opacity 0.2s, transform 0.2s;
}

.sms-captcha-popup__alimarket-btn:hover:enabled {
    transform: translateY(-1px);
}

.sms-captcha-popup__alimarket-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.sms-captcha-popup__alimarket-tip {
    margin: 0;
    color: #8b9ab9;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.sms-captcha-popup__target-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.sms-captcha-popup__target-item {
    padding: 4px 12px;
    border: 1px solid #dbe4f3;
    border-radius: 999px;
    background: #f7faff;
    color: #5d6f8f;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.sms-captcha-popup__target-item.is-done {
    border-color: #ffb877;
    background: #fff3e3;
    color: #e8830a;
}

.sms-captcha-popup__board {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #eef2f9;
    cursor: pointer;
    aspect-ratio: 600 / 320;
}

.sms-captcha-popup__board.is-loading {
    cursor: wait;
}

.sms-captcha-popup__board-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}

.sms-captcha-popup__board-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    color: #8b9ab9;
    font-size: 14px;
}

.sms-captcha-popup__marker {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: linear-gradient(180deg, #ff9d3d 0%, #ff7a1a 100%);
    box-shadow: 0 4px 10px rgba(255, 122, 26, 0.45);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

.sms-captcha-popup__footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
}

.sms-captcha-popup__action {
    padding: 8px 18px;
    border: 1px solid #d8e2f2;
    border-radius: 9px;
    background: #ffffff;
    color: #5d6f8f;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.sms-captcha-popup__action:hover:not(:disabled) {
    border-color: #ffb877;
    color: #e8830a;
}

.sms-captcha-popup__action:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.sms-captcha-popup__confirm {
    min-width: 136px;
    padding: 9px 22px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(90deg, #ff8b2d 0%, #ff6b1a 100%);
    box-shadow: 0 8px 18px rgba(255, 122, 26, 0.32);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sms-captcha-popup__confirm:hover:not(:disabled) {
    opacity: 0.9;
}

.sms-captcha-popup__confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 480px) {
    .login-modal__body {
        padding: 26px 20px 20px;
    }

    .login-modal__success {
        padding: 22px 18px 18px;
    }

    .demo-panel__grid {
        grid-template-columns: 1fr;
    }

    .demo-account__site {
        padding: 12px;
    }

    .demo-account__item {
        gap: 8px;
    }

    .demo-account__label {
        width: 34px;
    }

    .demo-account code,
    .demo-account__item a {
        font-size: 13px;
    }
}

/* ---------- 找回密码模式：无 Tab 切换，底部返回登录 ---------- */

.login-back-link.el-button {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #6B7A99;
    font-size: 13px;
    font-weight: 600;
}

.login-back-link.el-button:hover {
    color: #165DFC;
}

/* ---------- Tabs 居中 ---------- */

.login-tabs .el-tabs__nav-wrap {
    text-align: center;
}

.login-tabs .el-tabs__nav {
    display: inline-block;
    float: none;
}

/* ---------- 账号密码表单：错误提示与“找回密码”链接布局 ---------- */

.login-password-item {
    margin-bottom: 0;
}

.login-password-item .el-form-item__error {
    position: static;
    padding: 0;
    margin-top: 4px;
    line-height: 1.4;
}

.login-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 2px 0 14px;
}

.login-forgot-link.el-button {
    padding: 0;
    color: #8A97B3;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.login-forgot-link.el-button:hover {
    color: #165DFC;
}
