@charset "utf-8";

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background-color: #f2f3f5;
    background-image: url('../images/login_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #303133;
    line-height: 1.5;
}

.login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.login-card {
    width: 100%;
    max-width: 900px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    animation: fadeInUp 0.4s ease-out;
}

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

.card-left {
    width: 60%;
    background-image: url('../images/login-slide.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px20px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.left-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    margin-top: 20px;
}

.brand-name {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.brand-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.illustration {
    width: 100%;
    max-width: 360px;
    display: none;
}

.card-right {
    width: 50%;
    padding: 30px 55px;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.right-inner {
    width: 100%;
    max-width: 320px;
}

.login-title {
    font-size: 22px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 30px;
}

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

.input-wrapper {
    position: relative;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.input-wrapper:hover {
    border-color: #d4d7de;
}

.input-wrapper.focused {
    border-color: #0084ff;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #c0c4cc;
    z-index: 1;
    transition: color 0.2s ease;
}

.input-wrapper.focused .input-icon {
    color: #0084ff;
}

.input-wrapper input {
    width: 100%;
    height: 40px;
    padding: 0 14px 0 40px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    color: #606266;
    background: transparent;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #c0c4cc;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1;
}

.password-toggle i {
    font-size: 18px;
    color: #c0c4cc;
    transition: color 0.2s ease;
}

.password-toggle:hover i {
    color: #0084ff;
}

.captcha-group {
    display: flex;
    gap: 12px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 105px;
    height: 40px;
    border: 1px solid #e4e7ed;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    object-fit: contain;
}

.captcha-img:hover {
    border-color: #0084ff;
}

.remember-group {
    margin-bottom: 24px;
}

.remember-group .layui-form-checkbox {
    padding-left: 22px;
    font-size: 13px;
}

.remember-group span {
    color: #606266;
}

.login-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #0084ff 0%, #0066cc 100%);
    border: none;
    border-radius: 4px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loading {
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.8s linear infinite;
    left: 50%;
    top: 50%;
    margin: -9px 0 0 -9px;
}

@keyframes btnSpin {
    to {
        transform: rotate(360deg);
    }
}

.login-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.page-footer {
    margin-top: 150px;
    text-align: center;
}

.copyright {
    color: #c0c4cc;
    font-size: 12px;
}

.layui-input {
    color: #606266 !important;
    background: transparent !important;
    border: none !important;
    height: 40px !important;
    line-height: 40px !important;
    padding: 0 14px 0 40px !important;
}

.layui-input:focus {
    box-shadow: none !important;
}

.layui-input::-webkit-input-placeholder {
    color: #c0c4cc !important;
}

.layui-input::-moz-placeholder {
    color: #c0c4cc !important;
}

.layui-input:-ms-input-placeholder {
    color: #c0c4cc !important;
}

.layui-form-checked[lay-skin=primary] i {
    border-color: #0084ff !important;
    background-color: #0084ff !important;
}

.layui-form-checkbox[lay-skin=primary] i {
    border-color: #dcdfe6;
    border-radius: 2px;
}

.layui-form-checkbox[lay-skin=primary]:hover i {
    border-color: #0084ff;
}

@media screen and (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 420px;
    }
    
    .card-left {
        width: 100%;
        padding: 45px 35px;
    }
    
    .card-right {
        width: 100%;
        padding: 45px 35px;
    }
    
    .brand-name {
        font-size: 26px;
    }
    
    .illustration {
        max-width: 280px;
    }
}
