/* 神霄BMS - 登录页面样式（Apple 风格高端极简） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0071e3;
    --primary-hover: #0067d3;
    --bg-body: #fbfbfd;
    --bg-white: #ffffff;
    --text-1: #1d1d1f;
    --text-2: #6e6e73;
    --text-3: #86868b;
    --border: #e6e6e8;
    --radius: 12px;
}

body.login-body {
    min-height: 100vh;
    background: var(--bg-body);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 全屏登录布局 */
.bms-login-full {
    display: flex;
    min-height: 100vh;
}

/* 左侧品牌区域 */
.login-brand-section {
    flex: 1;
    background: linear-gradient(135deg, #0071e3 0%, #0056b3 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    position: relative;
}

.brand-content {
    max-width: 400px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.brand-content h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.brand-content p {
    font-size: 17px;
    font-weight: 400;
    opacity: 0.85;
    color: white;
    margin-bottom: 48px;
}

/* 品牌特性列表 */
.brand-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 320px;
    margin: 0 auto;
}

.feature-item {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.feature-item svg {
    width: 20px;
    height: 20px;
    stroke: white;
    opacity: 0.9;
    margin-bottom: 2px;
}

.feature-item div {
    font-size: 13px;
    font-weight: 500;
    color: white;
}

/* 右侧登录区域 */
.login-form-section {
    flex: 1;
    background: var(--bg-body);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* 登录容器 */
.login-container {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 8px 28px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-1);
    margin-bottom: 6px;
}

.login-header p {
    font-size: 14px;
    color: var(--text-3);
}

/* 错误提示 */
.login-error {
    background: #fff5f5;
    border: 1px solid #ffe3e3;
    color: #ff3b30;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-form .form-group {
    margin-bottom: 18px;
}

.login-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: 6px;
}

.login-form input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #f5f5f7;
    font-size: 15px;
    color: var(--text-1);
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.login-form input::placeholder {
    color: #a1a1a6;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

/* 记住我 */
.remember-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
}

.remember-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.remember-group label {
    font-size: 13px;
    color: var(--text-2);
    margin: 0;
    cursor: pointer;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
    letter-spacing: 0.02em;
}

.login-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* 登录页脚 */
.login-footer {
    margin-top: 24px;
    text-align: center;
}

.back-link {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.15s;
}

.back-link:hover {
    color: var(--primary);
}

/* ===== 响应式设计 ===== */

@media (max-width: 900px) {
    .bms-login-full {
        flex-direction: column;
    }

    .login-brand-section {
        flex: 0 0 auto;
        padding: 40px 24px;
        min-height: 180px;
    }

    .brand-content h1 {
        font-size: 28px;
        margin-bottom: 4px;
    }

    .brand-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .brand-features {
        max-width: 280px;
        gap: 10px;
    }

    .feature-item {
        padding: 10px 8px;
    }

    .feature-item div {
        font-size: 12px;
    }

    .login-form-section {
        flex: 1;
        padding: 32px 20px;
    }

    .login-container {
        padding: 36px 28px;
    }
}

@media (max-width: 520px) {
    .login-brand-section {
        min-height: 120px;
        padding: 28px 16px;
    }

    .brand-content h1 {
        font-size: 24px;
    }

    .brand-content p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .brand-features {
        display: none;
    }

    .login-form-section {
        padding: 20px 14px;
    }

    .login-container {
        padding: 28px 20px;
        border-radius: 14px;
        max-width: 100%;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .login-form input {
        height: 46px;
        font-size: 15px;
    }

    .login-btn {
        height: 46px;
        font-size: 15px;
    }
}
