/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "PingFang SC", sans-serif; background: #f0f2f5; height: 100vh; overflow: hidden; }

/* Login Container */
.login {
    background-image: url('images/login_bg.png');
    background-repeat: no-repeat;
    background-position: 50% !important;
    background-size: cover;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Header */
.login-head {
    padding: 12px 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    /* FIX #1: Added bottom border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
}
.login-head__content {
    height: 34px;
    line-height: 34px;
    padding-right: 150px;
}
.login-head__logo {
    height: 34px;
    color: #fff;
    font-size: 20px;
    width: 46%;
    min-width: 490px;
    float: left;
}
.login-head__img {
    height: 32px;
    max-width: 80%;
    float: left;
    vertical-align: middle;
}
.login-head__img img { height: 100%; }
.login-head__title {
    font-size: 20px;
    vertical-align: middle;
    margin-left: 12px;
    margin-top: 3px;
    padding-left: 12px;
    line-height: 28px;
    float: left;
    color: #fff;
    /* FIX #1 continued: Title border on left */
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}
.login-head__switch {
    position: absolute;
    top: 10px;
    right: 0px;
    line-height: 14px;
}
.login-head__switch__item {
    float: right;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 10px;
}

/* Main Content Layout */
.login-content {
    width: 720px;
    margin: 0 auto;
    position: relative;
    top: 150px; /* Adjusted for visual balance */
}

/* Left Notice Panel */
.login-notice {
    float: left;
    width: 300px;
    border-radius: 6px;
    padding: 0 15px 20px 15px;
    z-index: 1;
    overflow: hidden;
    background: rgba(58, 116, 253, 0.8); /* Fallback color */
}
.login-notice-bg {
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(58, 116, 253, 0.6);
    z-index: -1;
}
.login-notice__title {
    margin-bottom: 20px;
    height: 49px;
    line-height: 49px;
    font-size: 16px;
    color: #fff;
    /* FIX #2: Added border-bottom for title consistency */
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.login-notice__content {
    min-height: 22px;
    max-height: 350px;
    overflow-y: auto;
    color: #fff;
    line-height: 18px;
    font-size: 14px;
}

/* Right Login Panel */
.login-panel {
    float: right;
    width: 360px;
    min-height: 392px;
    background: #fff;
    border-radius: 6px;
    position: relative;
    padding-bottom: 48px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.login-panel__body {
    padding: 38px 44px 0 44px;
}

/* Form Elements */
.input-group {
    margin-bottom: 20px;
}
.input-linellae {
    width: 100%;
    height: 40px;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}
.input-linellae:focus {
    border-color: #3166E6;
}
.input-linellae::placeholder {
    color: #ccc;
}

.login-panel__other {
    margin-top: 8px;
    line-height: 20px;
    font-size: 14px;
    color: #666;
}
.login-panel__other__item {
    margin-right: 15px;
    display: inline-block;
}
.login-panel__other__item label {
    cursor: pointer;
}

/* FIX #3: Improved spacing for login-panel__link */
.login-panel__link {
    cursor: pointer;
    color: #999;
    text-decoration: none;
    display: inline-block;
    padding: 4px 0; /* Added vertical padding for breathing room */
    line-height: 1.5; /* Better line height */
    margin-bottom: 4px; /* Added small margin between links */
}
.login-panel__link:hover {
    color: #3166E6;
}

.login-panel__interval {
    padding: 20px 0;
    text-align: center;
}

/* FIX #2: Box title styling (authentication titles) */
.box-title {
    color: #3166E6;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Buttons */
.button {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}
.button--normal {
    background-color: #3166E6;
    color: #fff;
}
.button--normal:hover {
    background-color: #4C80FF;
}
.button--normal:active {
    background-color: #2551BB;
}

/* Footer */
.login-panel__footer {
    width: 100%;
    height: 48px;
    position: absolute;
    bottom: 0;
    background: #F7FBFF;
    line-height: 48px;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    text-align: center;
}
.login-panel__dowload {
    width: 100%;
    text-align: center;
}
.login-panel__dowload a {
    color: #999;
    text-decoration: none;
    font-size: 14px;
}
.login-panel__dowload a:hover {
    color: #3166E6;
}

/* WeChat Toggle (Visual Only) */
.login-panel__wechat {
    display: block;
    position: absolute;
    top: 8px;
    left: 304px;
    width: 48px;
    height: 48px;
    cursor: pointer;
}
.wechat_img {
    background-image: url('../images/wechat/pwd_btn.png');
    background-size: cover;
    width: 100%;
    height: 100%;
}
.login-panel__wechat span {
    display: none;
}
.login-panel__wechat:hover span {
    display: block;
    position: absolute;
    top: 12px;
    left: -166px;
    width: 160px;
    height: 24px;
    line-height: 24px;
    border-radius: 3px;
    color: #A6660A;
    background: #FDFAF3;
    border: 1px solid #F2DFC3;
    text-align: center;
    font-size: 12px;
}

/* Utility */
.cl { clear: both; }
