/* ============================================================
   商户登录页
   ============================================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
    background: #f5f6fa;
    color: #1c1e21;
    overflow: hidden;
}

.login-page {
    display: flex;
    height: 100vh;
    height: 100dvh;
}

/* ============================================================
   左侧品牌区
   ============================================================ */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
    color: #fff;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* 装饰 */
.login-brand::before,
.login-brand::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.login-brand::before {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
}

.login-brand::after {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
}

.brand-logo {
    margin-bottom: 24px;
    opacity: .95;
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -.5px;
}

.brand-desc {
    font-size: 16px;
    color: rgba(255,255,255,.85);
    margin-bottom: 40px;
}

.brand-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 15px;
    color: rgba(255,255,255,.9);
}

/* ============================================================
   右侧登录卡片
   ============================================================ */
.login-right {
    width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #fff;
    position: relative;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1c1e21;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #999;
}

/* ============ 表单 ============ */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    color: #65676b;
    margin-bottom: 6px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: color .15s;
}

.input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 44px;
    border: 1.5px solid #e4e6eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all .15s;
    background: #fafbfc;
}

.input-wrap input:focus {
    border-color: #0084ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 132, 255, .1);
}

.input-wrap input:focus + .input-icon,
.input-wrap:focus-within .input-icon {
    color: #0084ff;
}

/* 按钮 */
.btn-primary {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #0084ff, #0066d6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all .15s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(0, 132, 255, .3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 132, 255, .4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: .7;
    cursor: not-allowed;
}

/* 页脚 */
.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: #bbb;
}

/* ============================================================
   语言切换
   ============================================================ */
.login-lang {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* ============================================================
   手机端
   ============================================================ */
@media (max-width: 900px) {
    .login-page {
        flex-direction: column;
    }

    .login-brand {
        display: none;
    }

    .login-right {
        width: 100%;
        flex: 1;
        padding: 24px;
        align-items: center;
        background: linear-gradient(135deg, #0084ff 0%, #0056b3 100%);
    }

    .login-box {
        background: #fff;
        padding: 32px 24px;
        border-radius: 16px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
        max-width: 400px;
        width: 100%;
    }

    .login-lang {
        top: 16px;
        right: 16px;
    }

    .login-lang .lang-trigger {
        background: rgba(255, 255, 255, .2);
        border-color: rgba(255, 255, 255, .3);
        color: #fff;
    }

    .login-lang .lang-trigger:hover {
        background: rgba(255, 255, 255, .3);
    }

    .login-lang .lang-trigger svg {
        color: #fff;
    }
}

@media (max-width: 480px) {
    .login-right { padding: 16px; }
    .login-box { padding: 24px 20px; }
    .login-header h2 { font-size: 22px; }
}