/* =====================================================
 * 智营管家 - 登录页专用样式
 * ===================================================== */

.login-container {
    display: flex;
    height: 100vh;
}

/* 左侧品牌展示区 */
.login-left {
    width: 55%;
    background: #1D2129;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.left-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}
.left-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.left-logo .logo-icon svg { width: 32px; height: 32px; fill: white; }
.left-logo .brand-name {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}
.left-slogan {
    font-size: 18px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 4px;
}

/* 右侧登录表单区 */
.login-right {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.login-panel {
    width: 380px;
    padding: 40px;
}
.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--title-color);
    margin-bottom: 8px;
}
.login-subtitle {
    font-size: 14px;
    color: var(--muted-color);
    margin-bottom: 36px;
}

/* 表单元素 */
.login-form .form-group { margin-bottom: 22px; }
.login-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.input-with-icon .input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    stroke: var(--muted-color);
    fill: none;
    z-index: 1;
}
.input-with-icon .form-input {
    padding-left: 42px;
    height: 44px;
    border-radius: 6px;
    font-size: 14px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1;
}
.password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: var(--muted-color);
    fill: none;
}

/* 登录选项 */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}
.forgot-link {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}
.forgot-link:hover { text-decoration: underline; }

/* 登录按钮 */
.btn-login {
    width: 100%;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}
.btn-login:hover { background: var(--primary-hover); }
.btn-login:active { transform: scale(0.98); }
.btn-login.loading { background: #86909C; cursor: not-allowed; }

.register-tip {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--muted-color);
}
.register-tip a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}
.register-tip a:hover { text-decoration: underline; }

/* 错误提示 */
.field-error {
    color: var(--danger);
    font-size: 12px;
    margin-top: 4px;
    display: none;
}
.field-error.show { display: block; }

/* 响应式 */
@media (max-width: 900px) {
    .login-left { display: none; }
    .login-right { width: 100%; }
    .login-panel { width: 100%; max-width: 400px; padding: 30px; }
}
@media (max-width: 480px) {
    .login-panel { padding: 24px 20px; }
    .login-title { font-size: 24px; }
}
