* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f7fa;
}

.login-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: url("/images/login.png") center/cover no-repeat;
    position: relative;
}

.login-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(2px);
    z-index: 0;
}

.login-header,
.login-body,
.login-footer {
    position: relative;
    z-index: 1;
}

.login-header {
    height: 64px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    font-size: 22px;
    color: #1e88e5;
    font-weight: 600;
}

.brand img {
    height: 36px;
    margin-right: 10px;
}

.header-links a {
    color: #666;
    text-decoration: none;
    margin-left: 28px;
    font-size: 14px;
}

.header-links a:hover {
    color: #1e88e5;
}

.login-body {
    flex: 1;
    display: flex;
}

.login-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-large {
    text-align: center;
    color: #1e88e5;
}

.brand-large h1 {
    font-size: 48px;
    font-weight: 700;
    margin-top: 16px;
    letter-spacing: 4px;
}

.brand-large .slogan {
    font-size: 22px;
    color: #f57c00;
    margin-top: 8px;
    letter-spacing: 8px;
}

.login-right {
    width: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-right: 10%;
}

.login-card {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    padding: 36px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    font-size: 20px;
    color: #333;
    margin-bottom: 28px;
    font-weight: 600;
    position: relative;
    padding-bottom: 12px;
}

.login-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f57c00;
    border-radius: 2px;
}

.input-group-text {
    background: #fff;
    border-right: none;
    color: #999;
    width: 44px;
    justify-content: center;
}

.form-control {
    border-left: none;
    height: 44px;
    font-size: 14px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.input-group-text .icon-user::before { content: "\f007"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
.input-group-text .icon-lock::before { content: "\f023"; font-family: "Font Awesome 5 Free"; font-weight: 900; }
.input-group-text .icon-shield::before { content: "\f132"; font-family: "Font Awesome 5 Free"; font-weight: 900; }

.captcha-group .form-control {
    border-right: none;
}

.captcha-img {
    width: 90px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 0 4px 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    letter-spacing: 2px;
    cursor: pointer;
    user-select: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.forgot-link,
.register-link {
    color: #1e88e5;
    text-decoration: none;
}

.forgot-link:hover,
.register-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

.btn-login {
    height: 46px;
    background: #f57c00;
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    margin-top: 10px;
}

.btn-login:hover {
    background: #e65100;
    color: #fff;
}

.login-footer {
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    color: #999;
}

@media (max-width: 992px) {
    .login-left {
        display: none;
    }
    .login-right {
        width: 100%;
        padding: 20px;
    }
}
