* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}
body {
    background: url('../images/BK/bk.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.main-container {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    gap: 50px;
}

.left-section {
    flex: 1;
    max-width: 400px;
}

.right-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 右侧插图 */
.illustration {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.illustration img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

@keyframes gradient {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }

.login-container {
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.15);
    padding: 35px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    text-align: left;
    margin-bottom: 5px;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.header-with-icon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.header-icon {
    width: 70px;
    height: 70px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.system-title {
    text-align: left;
    margin-bottom: 30px;
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.form-options label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: #007bff;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
    background: #f8f9fa;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
    outline: none;
    background: white;
}

/* 短信验证码组 */
.sms-code-group {
    display: flex;
    gap: 10px;
}

.sms-code-group input {
    flex: 1;
}

.get-code {
    padding: 0 20px;
    background: #e3f2fd;
    color: #007bff;
    border: 1px solid #bbdefb;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.get-code:hover {
    background: #bbdefb;
}

input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

input[type="submit"]:hover {
    background: #0069d9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.register-link {
    text-align: center;
    font-size: 14px;
}

.register-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

/* 右侧插图 */
.illustration {
    width: 100%;
    max-width: 500px;
    height: 120px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.illustration img {
    width: auto;
    height: 120px;
    object-fit: contain;
}

/* 小屏幕设备 (手机) */
@media (max-width: 768px) {
    body {
        padding: 20px;
    }
    
    .main-container {
        flex-direction: column;
        gap: 30px;
        max-width: 100%;
    }
    
    .left-section,
    .right-section {
        flex: none;
        width: 100%;
        max-width: 100%;
    }
    
    .login-container {
        max-width: 100%;
        padding: 30px 25px;
        margin: 0 auto;
    }
    
    .illustration {
        max-width: 300px;
        margin: 0 auto;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    input[type="text"],
    input[type="password"] {
        padding: 12px 15px;
        font-size: 14px;
    }
}

/* 中等屏幕设备 (平板) */
@media (min-width: 769px) and (max-width: 1024px) {
    .main-container {
        gap: 30px;
    }
    
    .login-container {
        max-width: 350px;
        padding: 30px;
    }
    
    .illustration {
        max-width: 350px;
    }
}

/* 大屏幕设备 (桌面) */
@media (min-width: 1025px) {
    .main-container {
        margin-left: 0;
    }
    
    .login-container {
        max-width: 400px;
    }
    
    .illustration {
        max-width: 400px;
    }
}

/* 横屏手机适配 */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 10px;
    }
    
    .main-container {
        gap: 20px;
    }
    
    .login-container {
        padding: 25px;
    }
    
    .illustration {
        max-width: 250px;
    }
}

/* 高分辨率屏幕 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .login-container {
        border: 0.5px solid rgba(0, 123, 255, 0.1);
    }
}

/* 减少动画对偏好减少动画用户的影响 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 暗色模式适配 */
@media (prefers-color-scheme: dark) {
    body {
        background: url('../images/BK/bk.jpg') no-repeat center center fixed;
        background-size: cover;
    }
    
    .login-container {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        color: #fff;
    }
    
    h2 {
        color: #fff;
    }
    
    .system-title {
        color: #ccc;
    }
    
    .tab {
        color: #ccc;
    }
    
    .tab.active {
        color: #64b5f6;
    }
    
    .tab.active::after {
        background: #64b5f6;
    }
    
    .form-options label {
        color: #ccc;
    }
    
    .forgot-password {
        color: #64b5f6;
    }
    
    input[type="text"],
    input[type="password"] {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    input[type="text"]:focus,
    input[type="password"]:focus {
        border-color: #64b5f6;
        box-shadow: 0 0 0 2px rgba(100, 181, 246, 0.2);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .get-code {
        background: rgba(100, 181, 246, 0.2);
        color: #64b5f6;
        border-color: rgba(100, 181, 246, 0.3);
    }
    
    .get-code:hover {
        background: rgba(100, 181, 246, 0.3);
    }
    
    input[type="submit"] {
        background: #64b5f6;
    }
    
    input[type="submit"]:hover {
        background: #42a5f5;
    }
    
    .register-link a {
        color: #64b5f6;
    }
}


