/* ============================
   登录页样式 - 左右分屏品牌感
   ============================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    display: flex;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* 左侧品牌区 */
.login-brand {
    flex: 1;
    background: linear-gradient(135deg, #1b1f35 0%, #2c3270 55%, #3b5bdb 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 64px;
    color: #fff;
    overflow: hidden;
}

/* 装饰：机械齿轮线条 */
.login-brand::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -120px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
}
.login-brand::after {
    content: '';
    position: absolute;
    right: -60px;
    top: -60px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}

.brand-decoration {
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50%;
}

.brand-decoration-2 {
    position: absolute;
    left: -40px;
    bottom: -40px;
    width: 240px;
    height: 240px;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 50%;
    animation: rotateSlow 60s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.brand-logo {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.brand-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    line-height: 1.3;
}

.brand-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 40px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    z-index: 2;
}

.brand-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}

.brand-feature .feature-icon {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* 右侧表单区 */
.login-form-side {
    width: 480px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.login-header {
    margin-bottom: 36px;
}

.login-header h1 {
    font-size: 26px;
    color: var(--text-color, #1e2330);
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.login-header p {
    font-size: 14px;
    color: #94a0b0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #5c6573;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
}

.input-wrap .input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a0b0;
    font-size: 18px;
    pointer-events: none;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 44px;
    border: 1px solid #e3e7ee;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    font-family: inherit;
}

.form-group input:hover {
    border-color: #c9d0db;
}

.form-group input:focus {
    outline: none;
    border-color: #3b5bdb;
    box-shadow: 0 0 0 4px rgba(59, 91, 219, 0.08);
}

.form-tip {
    text-align: center;
    font-size: 13px;
    color: #94a0b0;
    margin-top: 14px;
}

.form-tip a {
    color: #3b5bdb;
    text-decoration: none;
    font-weight: 500;
}

.form-tip a:hover { text-decoration: underline; }

.btn-login {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #5b7cfa 0%, #3b5bdb 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 6px 16px rgba(59, 91, 219, 0.28);
    letter-spacing: 2px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(59, 91, 219, 0.36);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(59, 91, 219, 0.24);
}

/* 响应式 - 小屏隐藏左侧品牌区 */
@media (max-width: 900px) {
    .login-brand { display: none; }
    .login-form-side { width: 100%; }
}
