@charset "UTF-8";

:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --glass-bg: rgba(255, 255, 255, 0.75);
    /* Lighter glass for right side */
    --glass-bg-dark: rgba(17, 24, 39, 0.6);
    /* Darker glass for left side */
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-dark: #1f2937;
    --text-light: #ffffff;
    --text-muted: #6b7280;
    --input-bg: #f3f4f6;
    --input-focus-bg: #ffffff;
}

body,
html {
    height: 100%;
    margin: 0;
    /* Chinese font stack optimized for screen reading */
    font-family: "PingFang SC", "Microsoft YaHei", "HarmonyOS Sans", "Helvetica Neue", Arial, sans-serif;
    overflow: hidden;
}

body {
    background-image: url('../img/login_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background Overlay */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
    z-index: 0;
}

/* Main Container - Split Layout */
.login-container {
    position: relative;
    z-index: 1;
    width: 900px;
    height: 520px;
    display: flex;
    /* FLEXBOX SPLIT */
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* LEFT SIDE - Branding */
.login-left {
    flex: 1;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.login-left::before {
    /* Subtle decorative circle/gradient */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.login-left .title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 2px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-left .slogan {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    letter-spacing: 4px;
    line-height: 1.6;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}

.login-left .version {
    position: absolute;
    bottom: 30px;
    left: 60px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-family: monospace;
}

/* RIGHT SIDE - Form */
.login-right {
    width: 420px;
    /* Fixed width for form form area */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    position: relative;
}

.login-right h2 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 40px;
    font-weight: 600;
    text-align: left;
    /* Assertive left align */
    letter-spacing: 1px;
}

.login-right form ul li {
    margin-bottom: 25px;
    position: relative;
}

.login-right form ul li label {
    display: block;
    position: relative;
}

.login-right form ul li i.layui-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
    font-size: 18px;
    color: var(--text-muted);
    transition: color 0.3s;
    z-index: 2;
}

.login-right form ul li input {
    width: 100%;
    height: 48px;
    border: 1px solid transparent;
    background: var(--input-bg);
    border-radius: 8px;
    padding: 0 20px 0 45px;
    color: var(--text-dark);
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
}

.login-right form ul li input:focus {
    background: var(--input-focus-bg);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
    border-color: var(--primary-color);
}

.login-right form ul li input:focus+i {
    color: var(--primary-color);
}

/* Verify Code Layout */
.login-right form ul li.verify {
    display: flex;
    gap: 15px;
}

.login-right form ul li.verify label {
    flex: 1;
}

.login-right form ul li.verify img {
    height: 48px;
    width: 100px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
}

/* Button */
.login-right .btn-login {
    width: 100%;
    height: 48px !important;
    background: linear-gradient(90deg, #2563eb, #4f46e5) !important;
    border: none !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 4px;
    /* Spaced out Chinese text */
    text-indent: 4px;
    /* Optical center fix */
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.login-right .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.login-right .footer {
    margin-top: 30px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.login-right .footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 5px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media screen and (max-width: 960px) {
    .login-container {
        width: 90%;
        height: auto;
        flex-direction: column;
    }

    .login-left {
        padding: 40px;
        align-items: center;
        text-align: center;
    }

    .login-left .slogan {
        border-left: none;
        padding-left: 0;
        margin-top: 10px;
    }

    .login-left::before {
        display: none;
    }

    .login-left .version {
        position: static;
        margin-top: 20px;
    }

    .login-right {
        width: 100%;
        padding: 40px 30px;
    }
}