* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    height: 100%;
    font-family:
        "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
        "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
    background-color: #f2f3f5;
    /* 浅灰背景，突出卡片 */
    overflow-x: hidden;
}

/* 主容器：用于居中 */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 20px;
}

/* 登录卡片容器 */
.login-container {
    width: 100%;
    max-width: 420px;
    background-color: #fff;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    /* 柔和阴影 */
    animation: fadeInDown 0.6s ease-out;
    position: relative;
}

/* 顶部标题区 (代替左侧的标题) */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo-icon {
    font-size: 48px;
    color: #1e9fff;
    margin-bottom: 10px;
    display: inline-block;
}

.login-header h2 {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.login-header p {
    color: #999;
    font-size: 14px;
}

/* 自定义表单样式 */
.layui-form-item {
    position: relative;
    margin-bottom: 24px;
}

.layui-input {
    padding-left: 42px;
    /* 图标留空 */
    height: 46px;
    line-height: 46px;
    border-radius: 4px;
    border: 1px solid #e6e6e6;
    transition: all 0.3s;
    font-size: 15px;
}

.layui-input:focus {
    border-color: #1e9fff;
    box-shadow: 0 0 0 3px rgba(30, 159, 255, 0.1);
}

/* 图标定位 */
.input-icon {
    position: absolute;
    left: 12px;
    top: 12px;
    color: #ccc;
    font-size: 20px;
    z-index: 10;
    transition: color 0.3s;
}

.layui-input:focus + .input-icon,
.layui-input:focus ~ .input-icon {
    color: #1e9fff;
}

.layui-form-label {
    display: none;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    background-color: #1e9fff;
    font-size: 16px;
    border-radius: 4px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #1684d7;
}

.remember {
    margin: 20px 0;
    width: 100%;
    box-sizing: border-box;
    text-align: right;
}

/* 密码切换 */
.complete-card {
    max-width: 450px;
    margin: 100px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.pass-strength {
    font-size: 12px;
}
.strength-weak {
    color: #ff5722;
}
.strength-medium {
    color: #ffb800;
}
.strength-strong {
    color: #5fb878;
}

/* 动画 */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配 */
@media screen and (max-width: 768px) {
    .login-container {
        background: transparent;
        box-shadow: none;
        padding: 20px;
        max-width: 100%;
    }

    .login-header h2 {
        font-size: 26px;
    }

    .login-header p {
        display: none;
    }
}
