* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1D4ED8 0%, #059669 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

.login-wrapper {
    width: 100%;
    max-width: 380px;
    padding: 15px;
    z-index: 10;
}

.login-container {
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* 针对手机端的兼容性处理 */
@media screen and (max-width: 480px) {
    .login-wrapper {
        max-width: 92%;
        padding: 10px;
    }

    .login-container {
        padding: 25px 20px;
    }

    .login-logo h1 {
        font-size: 22px;
    }

    .login-welcome h2 {
        font-size: 20px;
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    letter-spacing: 2px;
}

.login-logo p {
    color: #94a3b8;
    font-size: 14px;
    letter-spacing: 4px;
}

.login-welcome {
    margin-bottom: 25px;
    text-align: left;
}

.login-welcome h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.login-welcome p {
    color: #64748b;
    font-size: 13px;
}

.input-label {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 500;
}

.layui-input {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding-left: 45px !important;
    background-color: #f8fafc;
    font-size: 14px;
}

.layui-input:focus {
    border-color: #1D4ED8 !important;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1) !important;
}

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

.input-icon {
    position: absolute;
    left: 15px;
    top: 36px;
    color: #cbd5e1;
    font-size: 18px;
    z-index: 10;
}

.captcha-wrapper {
    display: flex;
    gap: 10px;
}

.captcha-img-box {
    display: inline-block;
    height: 46px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    overflow: hidden;
    width: 110px;
    flex-shrink: 0;
    cursor: pointer;
}

.captcha-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-login {
    height: 48px;
    background: linear-gradient(to right, #3B82F6, #10B981);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.btn-login:hover {
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(29, 78, 216, 0.25);
}
